]> git.eshelyaron.com Git - emacs.git/commitdiff
Further small tweaks to Gnus modes cleanup
authorEric Abrahamsen <eric@ericabrahamsen.net>
Wed, 28 Nov 2018 17:31:40 +0000 (09:31 -0800)
committerEric Abrahamsen <eric@ericabrahamsen.net>
Wed, 28 Nov 2018 17:31:40 +0000 (09:31 -0800)
* 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
lisp/gnus/nnir.el

index 7be52717de938d31ed3f402680d6ee8ec555ea95..4baf4bc826355fb71548f2a82e9b16407c011962 100644 (file)
@@ -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
index 084b154e8a1c46676cd5adea156ba68c436ee3a0..62ac504864105d78c0cf8bf8c86f65dc88851f9b 100644 (file)
@@ -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)