gnus-draft.el (gnus-draft-clear-marks): Revert last change; mark actually existing...
authorKatsumi Yamaoka <yamaoka@jpl.org>
Fri, 1 Jul 2011 07:28:26 +0000 (07:28 +0000)
committerKatsumi Yamaoka <yamaoka@jpl.org>
Fri, 1 Jul 2011 07:28:26 +0000 (07:28 +0000)
lisp/ChangeLog
lisp/gnus-draft.el

index 8c629be..8580c0e 100644 (file)
@@ -1,3 +1,9 @@
+2011-07-01  Katsumi Yamaoka  <yamaoka@jpl.org>
+
+       * 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  <eggert@cs.ucla.edu>
 
        * nntp.el (nntp-record-command):
index a2a4cd3..40f5abd 100644 (file)
@@ -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)