X-Git-Url: http://cgit.sxemacs.org/?a=blobdiff_plain;f=lisp%2Fgnus-draft.el;h=13b3cbb862f48c5a69bbe4d4dd251474dafc97b5;hb=2df323a009ddd334ef992f32b7a8441daa6b6256;hp=a2a4cd3e07d5e861029b561ed44b1c9b9482ad42;hpb=b28d3268af979b7dbc15318793330085996c53a3;p=gnus diff --git a/lisp/gnus-draft.el b/lisp/gnus-draft.el index a2a4cd3e0..13b3cbb86 100644 --- a/lisp/gnus-draft.el +++ b/lisp/gnus-draft.el @@ -1,6 +1,6 @@ ;;; gnus-draft.el --- draft message support for Gnus -;; Copyright (C) 1997-2011 Free Software Foundation, Inc. +;; Copyright (C) 1997-2012 Free Software Foundation, Inc. ;; Author: Lars Magne Ingebrigtsen ;; Keywords: news @@ -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)