From 5d0d4e5a0c13bfa2eef90b507d6d749bf3bf880b Mon Sep 17 00:00:00 2001 From: teranisi Date: Mon, 4 Mar 2002 15:39:52 +0000 Subject: [PATCH] 2002-03-04 Mito * wl-mime.el (wl-mime-save-content): Don't save if answered "no". --- wl/ChangeLog | 4 ++++ wl/wl-mime.el | 11 ++++++----- 2 files changed, 10 insertions(+), 5 deletions(-) diff --git a/wl/ChangeLog b/wl/ChangeLog index 6fdd3f6..bc05dc5 100644 --- a/wl/ChangeLog +++ b/wl/ChangeLog @@ -1,3 +1,7 @@ +2002-03-04 Mito + + * wl-mime.el (wl-mime-save-content): Don't save if answered "no". + 2002-02-28 Yoichi NAKAYAMA * wl.el (wl-check-environment): Also cause error when (system-name) diff --git a/wl/wl-mime.el b/wl/wl-mime.el index 63e00df..0a80534 100644 --- a/wl/wl-mime.el +++ b/wl/wl-mime.el @@ -221,11 +221,12 @@ By setting following-method as yank-content." (while (file-directory-p filename) (setq filename (read-file-name "Please set filename (not directory): " filename))) - (if (file-exists-p filename) - (or (yes-or-no-p (format "File %s exists. Save anyway? " filename)) - (message "Not saved"))) - (setq wl-mime-save-directory (file-name-directory filename)) - (mime-write-entity-content entity filename))) + (if (and (file-exists-p filename) + (not (yes-or-no-p (format "File %s exists. Save anyway? " + filename)))) + (message "Not saved") + (setq wl-mime-save-directory (file-name-directory filename)) + (mime-write-entity-content entity filename)))) ;;; Yet another combine method. (defun wl-mime-combine-message/partial-pieces (entity situation) -- 1.7.10.4