mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-15 10:30:25 -08:00
Further small tweaks to Gnus modes cleanup
* lisp/gnus/gnus-sum.el: Remove explicit definition of `gnus-summary-mode-hook', this is now created automatically. * lisp/gnus/nnir.el (nnir-open-server): Attach `nnir-mode' to the `gnus-summary-prepared-hook', instead of `gnus-summary-mode-hook'. The latter no longer has access to the buffer-local value of `gnus-newsgroup-name', which `nnir-mode' needs.
This commit is contained in:
parent
415ef4a2b0
commit
e8d7e3a59a
2 changed files with 1 additions and 8 deletions
|
|
@ -946,13 +946,6 @@ This variable is local to the summary buffers."
|
|||
:type '(choice (const :tag "off" nil)
|
||||
integer))
|
||||
|
||||
(defcustom gnus-summary-mode-hook nil
|
||||
"A hook for Gnus summary mode.
|
||||
This hook is run before any variables are set in the summary buffer."
|
||||
:options '(turn-on-gnus-mailing-list-mode gnus-pick-mode)
|
||||
:group 'gnus-summary-various
|
||||
:type 'hook)
|
||||
|
||||
(defcustom gnus-summary-menu-hook nil
|
||||
"Hook run after the creation of the summary mode menu."
|
||||
:group 'gnus-summary-visual
|
||||
|
|
|
|||
|
|
@ -657,7 +657,7 @@ skips all prompting."
|
|||
(let ((backend (car (gnus-server-to-method server))))
|
||||
(if backend
|
||||
(nnoo-change-server backend server definitions)
|
||||
(add-hook 'gnus-summary-mode-hook 'nnir-mode)
|
||||
(add-hook 'gnus-summary-prepared-hook 'nnir-mode)
|
||||
(nnoo-change-server 'nnir server definitions))))
|
||||
|
||||
(deffoo nnir-request-group (group &optional server dont-check _info)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue