From: yamaoka Date: Fri, 27 Sep 2002 08:09:18 +0000 (+0000) Subject: Synch with Oort Gnus. X-Git-Tag: t-gnus-6_15_8-04-quimby~17 X-Git-Url: http://git.chise.org/gitweb/?a=commitdiff_plain;h=f77a5be3bc2fdb1c269c5e22cd940427cf167e2c;p=elisp%2Fgnus.git- Synch with Oort Gnus. --- diff --git a/lisp/ChangeLog b/lisp/ChangeLog index ba9e2cb..f173cbb 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,3 +1,11 @@ +2002-09-27 Simon Josefsson + + * gnus-start.el (gnus-fixup-nnimap-unread-after-getting-new-news): New. + (gnus-setup-news-hook): Use it. + (gnus-after-getting-new-news-hook): Ditto. + + * nnimap.el (nnimap-fixup-unread-after-getting-new-news): Remove. + 2002-09-27 Katsumi Yamaoka From Mats Lidell . diff --git a/lisp/gnus-start.el b/lisp/gnus-start.el index 502c3c9..e9ad647 100644 --- a/lisp/gnus-start.el +++ b/lisp/gnus-start.el @@ -371,7 +371,8 @@ This hook is called as the first thing when Gnus is started." :group 'gnus-start :type 'hook) -(defcustom gnus-setup-news-hook '(nnimap-fixup-unread-after-getting-new-news) +(defcustom gnus-setup-news-hook + '(gnus-fixup-nnimap-unread-after-getting-new-news) "A hook after reading the .newsrc file, but before generating the buffer." :group 'gnus-start :type 'hook) @@ -383,7 +384,7 @@ This hook is called as the first thing when Gnus is started." (defcustom gnus-after-getting-new-news-hook '(gnus-display-time-event-handler - nnimap-fixup-unread-after-getting-new-news) + gnus-fixup-nnimap-unread-after-getting-new-news) "A hook run after Gnus checks for new news when Gnus is already running." :group 'gnus-group-new :type 'hook) @@ -2922,6 +2923,23 @@ If this variable is nil, don't do anything." (when (gnus-boundp 'display-time-timer) (display-time-event-handler))) +;; Byte-compiler warning. +(eval-when-compile + (defvar nnimap-mailbox-info)) + +;;;###autoload +(defun gnus-fixup-nnimap-unread-after-getting-new-news () + (let (server group info) + (mapatoms + (lambda (sym) + (when (and (setq group (symbol-name sym)) + (gnus-group-entry group) + (setq info (symbol-value sym))) + (gnus-sethash group (cons (nth 2 info) (cdr (gnus-group-entry group))) + gnus-newsrc-hashtb))) + nnimap-mailbox-info))) + + (provide 'gnus-start) ;;; gnus-start.el ends here diff --git a/lisp/nnimap.el b/lisp/nnimap.el index 9ee388b..91537c6 100644 --- a/lisp/nnimap.el +++ b/lisp/nnimap.el @@ -1551,18 +1551,6 @@ be used in a STORE FLAGS command." "Return t iff MARK can be permanently (between IMAP sessions) saved on articles, in GROUP." (imap-message-flag-permanent-p (nnimap-mark-to-flag mark))) -;;;###autoload -(defun nnimap-fixup-unread-after-getting-new-news () - (let (server group info) - (mapatoms - (lambda (sym) - (when (and (setq group (symbol-name sym)) - (gnus-group-entry group) - (setq info (symbol-value sym))) - (gnus-sethash group (cons (nth 2 info) (cdr (gnus-group-entry group))) - gnus-newsrc-hashtb))) - nnimap-mailbox-info))) - (when nnimap-debug (require 'trace) (buffer-disable-undo (get-buffer-create nnimap-debug))