From: Katsumi Yamaoka Date: Fri, 1 Jul 2011 07:29:00 +0000 (+0000) Subject: gnus-draft.el (gnus-draft-clear-marks): Revert last change; mark actually existing... X-Git-Tag: emacs-pretest-24.0.90~104^2~152^2~284 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=85e428791ed26d2094d13a74b0e578e624885d92;p=emacs.git gnus-draft.el (gnus-draft-clear-marks): Revert last change; mark actually existing articles as unread rather than the ones that active asserts. --- diff --git a/lisp/gnus/ChangeLog b/lisp/gnus/ChangeLog index 7d1e7ed7198..9bb234a1189 100644 --- a/lisp/gnus/ChangeLog +++ b/lisp/gnus/ChangeLog @@ -1,3 +1,9 @@ +2011-07-01 Katsumi Yamaoka + + * gnus-draft.el (gnus-draft-clear-marks): Revert last change; + mark actually existing articles as unread rather than the ones that + active asserts. + 2011-07-01 Paul Eggert * nntp.el (nntp-record-command): diff --git a/lisp/gnus/gnus-draft.el b/lisp/gnus/gnus-draft.el index a2a4cd3e07d..40f5abda4f8 100644 --- a/lisp/gnus/gnus-draft.el +++ b/lisp/gnus/gnus-draft.el @@ -325,18 +325,9 @@ If DONT-POP is nil, display the buffer after setting it up." (error "The draft %s is under edit" file))))) (defun gnus-draft-clear-marks () - (setq gnus-newsgroup-marked nil - gnus-newsgroup-unreads (gnus-uncompress-range - (gnus-active gnus-newsgroup-name))) - ;; Mark articles except for deleted ones as unread. - (let (rest) - (dolist (article gnus-newsgroup-reads) - (when (and (consp article) - (eq (cdr article) gnus-canceled-mark)) - (push article rest) - (setq gnus-newsgroup-unreads - (delq (car article) gnus-newsgroup-unreads)))) - (setq gnus-newsgroup-reads (nreverse rest)))) + (setq gnus-newsgroup-reads nil + gnus-newsgroup-marked nil + gnus-newsgroup-unreads (nndraft-articles))) (provide 'gnus-draft)