2002-03-04 Mito <mito@mxa.nes.nec.co.jp>
authorteranisi <teranisi>
Mon, 4 Mar 2002 15:39:52 +0000 (15:39 +0000)
committerteranisi <teranisi>
Mon, 4 Mar 2002 15:39:52 +0000 (15:39 +0000)
* wl-mime.el (wl-mime-save-content): Don't save if answered "no".

wl/ChangeLog
wl/wl-mime.el

index 6fdd3f6..bc05dc5 100644 (file)
@@ -1,3 +1,7 @@
+2002-03-04  Mito  <mito@mxa.nes.nec.co.jp>
+
+       * wl-mime.el (wl-mime-save-content): Don't save if answered "no".
+
 2002-02-28  Yoichi NAKAYAMA  <yoichi@eken.phys.nagoya-u.ac.jp>
 
        * wl.el (wl-check-environment): Also cause error when (system-name)
index 63e00df..0a80534 100644 (file)
@@ -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)