]> git.eshelyaron.com Git - emacs.git/commitdiff
(nnkiboze-close-group): Should only be run from summary buffers.
authorRichard M. Stallman <rms@gnu.org>
Wed, 17 Jan 1996 00:22:11 +0000 (00:22 +0000)
committerRichard M. Stallman <rms@gnu.org>
Wed, 17 Jan 1996 00:22:11 +0000 (00:22 +0000)
lisp/nnkiboze.el

index 8b2fc894da5c090a3fb283fe18b6144130b090a3..4260e5fc46fe582799716110f2747d01af955acc 100644 (file)
@@ -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)