emacs-diffs
[Top][All Lists]
Advanced

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

[Emacs-diffs] master e8d7e3a: Further small tweaks to Gnus modes cleanup


From: Eric Abrahamsen
Subject: [Emacs-diffs] master e8d7e3a: Further small tweaks to Gnus modes cleanup
Date: Wed, 28 Nov 2018 12:33:08 -0500 (EST)

branch: master
commit e8d7e3a59a05917b94b6803c123be97ccd693f0d
Author: Eric Abrahamsen <address@hidden>
Commit: Eric Abrahamsen <address@hidden>

    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.
---
 lisp/gnus/gnus-sum.el | 7 -------
 lisp/gnus/nnir.el     | 2 +-
 2 files changed, 1 insertion(+), 8 deletions(-)

diff --git a/lisp/gnus/gnus-sum.el b/lisp/gnus/gnus-sum.el
index 7be5271..4baf4bc 100644
--- a/lisp/gnus/gnus-sum.el
+++ b/lisp/gnus/gnus-sum.el
@@ -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
diff --git a/lisp/gnus/nnir.el b/lisp/gnus/nnir.el
index 084b154..62ac504 100644
--- a/lisp/gnus/nnir.el
+++ b/lisp/gnus/nnir.el
@@ -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)



reply via email to

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