(gnus-mime-delete-part): Don't go through article-edit
authorDavid Kastrup <dak@gnu.org>
Sat, 14 Jul 2007 09:12:16 +0000 (09:12 +0000)
committerDavid Kastrup <dak@gnu.org>
Sat, 14 Jul 2007 09:12:16 +0000 (09:12 +0000)
finishing actions if we did not edit the article.

lisp/gnus/ChangeLog
lisp/gnus/gnus-art.el

index 6ff604a..30b787a 100644 (file)
@@ -1,3 +1,8 @@
+2007-07-14  David Kastrup  <dak@gnu.org>
+
+       * gnus-art.el (gnus-mime-delete-part): Don't go through article-edit
+       finishing actions if we did not edit the article.
+
 2007-07-04  Katsumi Yamaoka  <yamaoka@jpl.org>
 
        * gnus-sum.el (gnus-summary-catchup): Don't recognize cached articles
index cbfa6bd..020bd28 100644 (file)
@@ -4408,11 +4408,11 @@ Deleting parts may malfunction or destroy the article; continue? ")
          (gnus-summary-edit-article-done
           ,(or (mail-header-references gnus-current-headers) "")
           ,(gnus-group-read-only-p)
-          ,gnus-summary-buffer no-highlight)))))
-  ;; Not in `gnus-mime-save-part-and-strip':
-  (gnus-article-edit-done)
-  (gnus-summary-expand-window)
-  (gnus-summary-show-article))
+          ,gnus-summary-buffer no-highlight))))
+    ;; Not in `gnus-mime-save-part-and-strip':
+    (gnus-article-edit-done)
+    (gnus-summary-expand-window)
+    (gnus-summary-show-article)))
 
 (defun gnus-mime-save-part ()
   "Save the MIME part under point."