From: keiichi Date: Tue, 13 Apr 1999 04:06:46 +0000 (+0000) Subject: (gnus-summary-move-article): Fix, `gnus-article-mark-lists' will be broken by X-Git-Tag: nana-gnus-6_12_12~2 X-Git-Url: http://git.chise.org/gitweb/?a=commitdiff_plain;h=03f8611e97dab4d4e46827877998a35341f6f2fa;p=elisp%2Fgnus.git- (gnus-summary-move-article): Fix, `gnus-article-mark-lists' will be broken by side effect. --- diff --git a/lisp/gnus-sum.el b/lisp/gnus-sum.el index b1d9456..3854e91 100644 --- a/lisp/gnus-sum.el +++ b/lisp/gnus-sum.el @@ -6923,6 +6923,9 @@ and `request-accept' functions." (crosspost "Crosspost" "Crossposting"))) (copy-buf (save-excursion (nnheader-set-temp-buffer " *copy article*"))) + (default-marks gnus-article-mark-lists) + (no-expire-marks (delete '(expirable . expire) + (copy-sequence gnus-article-mark-lists))) art-group to-method new-xref article to-groups) (unless (assq action names) (error "Unknown action %s" action)) @@ -7028,11 +7031,10 @@ and `request-accept' functions." (list (cdr art-group))))) ;; Copy any marks over to the new group. - (let ((marks gnus-article-mark-lists) + (let ((marks (if (gnus-group-auto-expirable-p to-group) + default-marks + no-expire-marks)) (to-article (cdr art-group))) - (unless (gnus-group-auto-expirable-p to-group) - (setq marks (delete '(expirable . expire) marks))) - ;; See whether the article is to be put in the cache. (when gnus-use-cache (gnus-cache-possibly-enter-article