[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] master 46eb6df 2/2: Put new Gnus groups in the completion
From: |
Lars Ingebrigtsen |
Subject: |
[Emacs-diffs] master 46eb6df 2/2: Put new Gnus groups in the completion table |
Date: |
Sun, 29 Sep 2019 06:38:57 -0400 (EDT) |
branch: master
commit 46eb6df45358f413847ceb882898b2326f7584c8
Author: Lars Ingebrigtsen <address@hidden>
Commit: Lars Ingebrigtsen <address@hidden>
Put new Gnus groups in the completion table
* lisp/gnus/gnus-start.el (gnus-group-change-level): Ensure that
all new groups are in gnus-active-hashtb so that they can be
completed to.
---
lisp/gnus/gnus-start.el | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/lisp/gnus/gnus-start.el b/lisp/gnus/gnus-start.el
index cb369f0..e142c43 100644
--- a/lisp/gnus/gnus-start.el
+++ b/lisp/gnus/gnus-start.el
@@ -1269,6 +1269,10 @@ string name) to insert this group before."
(consp entry))
(setq oldlevel (gnus-info-level (nth 1 entry)))
(setq oldlevel (or oldlevel gnus-level-killed)))
+
+ ;; This table is used for completion, so put a dummy entry there.
+ (unless (gethash group gnus-active-hashtb)
+ (setf (gethash group gnus-active-hashtb) nil))
;; Group is already subscribed.
(unless (and (>= oldlevel gnus-level-zombie)
(gnus-group-entry group))