summaryrefslogtreecommitdiff
path: root/lisp/gnus
diff options
context:
space:
mode:
authordickmao <none>2020-09-24 16:48:11 +0200
committerLars Ingebrigtsen <larsi@gnus.org>2020-09-24 16:49:15 +0200
commit5df652d6144c82e1a0321d0feaf93e20467f635b (patch)
tree55395dc2c484cf8dbea458c90214c48957120dae /lisp/gnus
parent897ea41d394cffe75ece0450d1628d6c4855d37a (diff)
downloademacs-5df652d6144c82e1a0321d0feaf93e20467f635b.tar.gz
emacs-5df652d6144c82e1a0321d0feaf93e20467f635b.tar.bz2
emacs-5df652d6144c82e1a0321d0feaf93e20467f635b.zip
Add sanity check for Gnus groups that belong to no topic
* lisp/gnus/gnus-topic.el (gnus-topic-change-level): Do not change gnus-topic-alist when group is outside "topology" (bug#43582).
Diffstat (limited to 'lisp/gnus')
-rw-r--r--lisp/gnus/gnus-topic.el4
1 files changed, 1 insertions, 3 deletions
diff --git a/lisp/gnus/gnus-topic.el b/lisp/gnus/gnus-topic.el
index ffd26bb30f4..c913002f70b 100644
--- a/lisp/gnus/gnus-topic.el
+++ b/lisp/gnus/gnus-topic.el
@@ -897,9 +897,7 @@ articles in the topic and its subtopics."
(let ((inhibit-read-only t))
(unless gnus-topic-inhibit-change-level
(gnus-group-goto-group (or (car (nth 1 previous)) group))
- (when (and gnus-topic-mode
- gnus-topic-alist
- (not gnus-topic-inhibit-change-level))
+ (when (and gnus-topic-mode gnus-topic-alist (gnus-current-topic))
;; Remove the group from the topics.
(if (and (< oldlevel gnus-level-zombie)
(>= level gnus-level-zombie))