From: teranisi Date: Mon, 4 Mar 2002 15:39:52 +0000 (+0000) Subject: 2002-03-04 Mito X-Git-Tag: wl-2_9_8~34 X-Git-Url: http://git.chise.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5d0d4e5a0c13bfa2eef90b507d6d749bf3bf880b;p=elisp%2Fwanderlust.git 2002-03-04 Mito * wl-mime.el (wl-mime-save-content): Don't save if answered "no". --- 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)