emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] master 0627a8d: Enable message saving to work when first u


From: Katsumi Yamaoka
Subject: [Emacs-diffs] master 0627a8d: Enable message saving to work when first use of Gnus (bug#35208)
Date: Wed, 10 Apr 2019 20:23:56 -0400 (EDT)

branch: master
commit 0627a8d7bc6ffa29d7a503fd36e760778ecb9fa1
Author: Katsumi Yamaoka <address@hidden>
Commit: Katsumi Yamaoka <address@hidden>

    Enable message saving to work when first use of Gnus (bug#35208)
    
    * lisp/gnus/gnus-group.el (gnus-group-goto-group);
    Use gnus-active-hashtb in addition to gnus-newsrc-hashtb to check if
    a group exists since some kinds of groups are registered in only one
    of them (bug#35208).
---
 lisp/gnus/gnus-group.el | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/lisp/gnus/gnus-group.el b/lisp/gnus/gnus-group.el
index 58f3dc3..144496b 100644
--- a/lisp/gnus/gnus-group.el
+++ b/lisp/gnus/gnus-group.el
@@ -2560,7 +2560,11 @@ If FAR, it is likely that the group is not on the 
current line.
 If TEST-MARKED, the line must be marked."
   (when group
     (let ((start (point))
-         (active (and (gethash group gnus-newsrc-hashtb)
+         (active (and (or
+                       ;; some kind of group may be only there.
+                       (gethash group gnus-active-hashtb)
+                       ;; all groups (but with exception) are there.
+                       (gethash group gnus-newsrc-hashtb))
                       group)))
       (beginning-of-line)
       (cond



reply via email to

[Prev in Thread] Current Thread [Next in Thread]