summaryrefslogtreecommitdiff
path: root/lisp/gnus/gnus-draft.el
diff options
context:
space:
mode:
authorLars Ingebrigtsen <larsi@gnus.org>2011-01-27 04:04:58 +0000
committerKatsumi Yamaoka <yamaoka@jpl.org>2011-01-27 04:04:58 +0000
commit647559c2993ca4fb3fdbdf340945f5e1afbe84d9 (patch)
tree93836ecd33069a0d712fe12e5647947913a29289 /lisp/gnus/gnus-draft.el
parente7f7fbaa11828658bfa7a47e07446d050dc0ad92 (diff)
downloademacs-647559c2993ca4fb3fdbdf340945f5e1afbe84d9.tar.gz
Merge changes made in Gnus trunk.
gnus-art.el (gnus-article-next-page): Change last-line-displayed behaviour. (article-lapsed-string): Refactor out and allow specifying how many segments you want. (gnus-article-setup-buffer): Start updating the lapsed header directly. (gnus-article-update-lapsed-header): New variable. shr.el (shr-put-color): Don't do the box padding in tables, since they're already padded. gnus-util.el (float-time): If float-time is bound, always use it on all Emacsen. It's unclear why the subrp check was there. (time-date): Require to make some autoload issues on XEmacs go away. gnus-draft.el (gnus-draft-clear-marks): New function to be run as an exit hook to nix out all data on readedness on group exit. gnus-sum.el (gnus-auto-select-subject): Doc typo.
Diffstat (limited to 'lisp/gnus/gnus-draft.el')
-rw-r--r--lisp/gnus/gnus-draft.el9
1 files changed, 8 insertions, 1 deletions
diff --git a/lisp/gnus/gnus-draft.el b/lisp/gnus/gnus-draft.el
index e1a90fc0de5..78ef713c404 100644
--- a/lisp/gnus/gnus-draft.el
+++ b/lisp/gnus/gnus-draft.el
@@ -68,7 +68,8 @@
(gnus-draft-mode
;; Set up the menu.
(when (gnus-visual-p 'draft-menu 'menu)
- (gnus-draft-make-menu-bar)))))
+ (gnus-draft-make-menu-bar))
+ (add-hook 'gnus-summary-prepare-exit-hook 'gnus-draft-clear-marks t t))))
;;; Commands
@@ -325,6 +326,12 @@ Obeys the standard process/prefix convention."
(pop-to-buffer buff t)))
(error "The draft %s is under edit" file)))))
+(defun gnus-draft-clear-marks ()
+ (setq gnus-newsgroup-reads nil
+ gnus-newsgroup-marked nil
+ gnus-newsgroup-unreads
+ (gnus-uncompress-range (gnus-active gnus-newsgroup-name))))
+
(provide 'gnus-draft)
;;; gnus-draft.el ends here