From: Richard M. Stallman Date: Wed, 17 Jan 1996 00:22:11 +0000 (+0000) Subject: (nnkiboze-close-group): Should only be run from summary buffers. X-Git-Tag: emacs-19.34~1663 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=7e8fa774dd4421aa591cbc33ef6c2cead76abd3a;p=emacs.git (nnkiboze-close-group): Should only be run from summary buffers. --- diff --git a/lisp/nnkiboze.el b/lisp/nnkiboze.el index 8b2fc894da5..4260e5fc46f 100644 --- a/lisp/nnkiboze.el +++ b/lisp/nnkiboze.el @@ -147,7 +147,8 @@ If the stream is opened, return T, otherwise return NIL." (defun nnkiboze-close-group (group &optional server) (nnkiboze-possibly-change-newsgroups group) ;; Remove NOV lines of articles that are marked as read. - (if (not (file-exists-p (nnkiboze-nov-file-name))) + (if (or (not (file-exists-p (nnkiboze-nov-file-name))) + (not (eq major-mode 'gnus-summary-mode))) () (save-excursion (let ((unreads gnus-newsgroup-unreads)