]> git.eshelyaron.com Git - emacs.git/commitdiff
mm-decode.el (mm-preferred-alternative-precedence): Don't bug out on nested related...
authorLars Ingebrigtsen <larsi@gnus.org>
Sat, 22 Jan 2011 12:34:50 +0000 (12:34 +0000)
committerKatsumi Yamaoka <yamaoka@jpl.org>
Sat, 22 Jan 2011 12:34:50 +0000 (12:34 +0000)
nnfolder.el (nnfolder-request-expire-articles): Return the list of unexpired articles.  This fixes the regression that led expiry marks to disappear from nnfolder groups.

lisp/gnus/ChangeLog
lisp/gnus/mm-decode.el
lisp/gnus/nnfolder.el

index 807bdc00ebdbb45ef32a5651e71309d1d08cd16a..d55140ada42319302ff8f39d771338119b628365 100644 (file)
@@ -1,3 +1,12 @@
+2011-01-22  Lars Ingebrigtsen  <larsi@gnus.org>
+
+       * mm-decode.el (mm-preferred-alternative-precedence): Don't bug out on
+       nested related parts.
+
+       * nnfolder.el (nnfolder-request-expire-articles): Return the list of
+       unexpired articles.  This fixes the regression that led expiry marks to
+       disappear from nnfolder groups.
+
 2011-01-21  Stefan Monnier  <monnier@iro.umontreal.ca>
 
        * gnus-art.el (gnus-button-alist, gnus-button-handle-info-keystrokes):
index 40cfa9b24531afc25046b79ccf6042c39a02d24e..ea65dd6fc9276267c80617da20b482d0a77ccbe0 100644 (file)
@@ -1379,9 +1379,10 @@ Use CMD as the process."
        (setq handles (nconc (delete handle handles) (list handle))))))
   ;; Remove empty parts.
   (dolist (handle (copy-sequence handles))
-    (unless (with-current-buffer (mm-handle-buffer handle)
-             (goto-char (point-min))
-             (re-search-forward "[^ \t\n]" nil t))
+    (when (and (bufferp (mm-handle-buffer handle))
+              (not (with-current-buffer (mm-handle-buffer handle)
+                     (goto-char (point-min))
+                     (re-search-forward "[^ \t\n]" nil t))))
       (setq handles (nconc (delete handle handles) (list handle)))))
   (mapcar #'mm-handle-media-type handles))
 
index a264bc24c1545a63a2c6ef84bbd09e9d77e8dc48..826de8b38d378769bdacdb00e8394fb5373572a2 100644 (file)
@@ -488,8 +488,8 @@ the group.  Then the marks file will be regenerated properly by Gnus.")
       (nnfolder-save-buffer)
       (nnfolder-adjust-min-active newsgroup)
       (nnfolder-save-active nnfolder-group-alist nnfolder-active-file)
-      (gnus-sorted-difference articles (nreverse deleted-articles)))
-    (nnfolder-save-all-buffers)))
+      (nnfolder-save-all-buffers)
+      (gnus-sorted-difference articles (nreverse deleted-articles)))))
 
 (deffoo nnfolder-request-move-article (article group server accept-form
                                               &optional last move-is-internal)