Remove bogus mode check from gnus topic update functions
* lisp/gnus/gnus-topic.el (gnus-topic-update-topics-containing-group): (gnus-topic-update-topic): These functions originally checked to see if we were in group mode, but later that check was changed to 'gnus-topic-mode, which never passes because 'gnus-topic-mode isn't a major mode. Revert to checking for 'gnus-group-mode, and use `derived-mode-p' while we're at it.
This commit is contained in:
parent
78df8a0e3d
commit
2b50dbb1a5
1 changed files with 2 additions and 2 deletions
|
@ -678,7 +678,7 @@ articles in the topic and its subtopics."
|
|||
|
||||
(defun gnus-topic-update-topics-containing-group (group)
|
||||
"Update all topics that have GROUP as a member."
|
||||
(when (and (eq major-mode 'gnus-topic-mode)
|
||||
(when (and (derived-mode-p 'gnus-group-mode)
|
||||
gnus-topic-mode)
|
||||
(save-excursion
|
||||
(let ((alist gnus-topic-alist))
|
||||
|
@ -694,7 +694,7 @@ articles in the topic and its subtopics."
|
|||
|
||||
(defun gnus-topic-update-topic ()
|
||||
"Update all parent topics to the current group."
|
||||
(when (and (eq major-mode 'gnus-topic-mode)
|
||||
(when (and (derived-mode-p 'gnus-group-mode)
|
||||
gnus-topic-mode)
|
||||
(let ((group (gnus-group-group-name))
|
||||
(m (point-marker))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue