diff options
| author | Lars Ingebrigtsen | 2016-02-11 16:15:43 +1100 |
|---|---|---|
| committer | Lars Ingebrigtsen | 2016-02-11 16:15:43 +1100 |
| commit | d4680232fbf3b28a6b37356241456a7c102b2273 (patch) | |
| tree | b792d635fcb2a938b191b0d016b3d965f4f90117 | |
| parent | 21cfd14d54370cddc1160d30bc47e17c5ac3a162 (diff) | |
| download | emacs-d4680232fbf3b28a6b37356241456a7c102b2273.tar.gz emacs-d4680232fbf3b28a6b37356241456a7c102b2273.zip | |
Remove gnus-make-local-hook
* lisp/gnus/gnus-util.el (gnus-make-local-hook): Remove (and
all its usages).
| -rw-r--r-- | lisp/gnus/gnus-art.el | 1 | ||||
| -rw-r--r-- | lisp/gnus/gnus-msg.el | 5 | ||||
| -rw-r--r-- | lisp/gnus/gnus-sum.el | 2 | ||||
| -rw-r--r-- | lisp/gnus/gnus-topic.el | 1 | ||||
| -rw-r--r-- | lisp/gnus/gnus-undo.el | 1 | ||||
| -rw-r--r-- | lisp/gnus/gnus-util.el | 8 | ||||
| -rw-r--r-- | lisp/gnus/message.el | 2 | ||||
| -rw-r--r-- | lisp/gnus/mml.el | 2 | ||||
| -rw-r--r-- | lisp/gnus/nndraft.el | 2 |
9 files changed, 0 insertions, 24 deletions
diff --git a/lisp/gnus/gnus-art.el b/lisp/gnus/gnus-art.el index f16a4c66ab6..12f90bf415c 100644 --- a/lisp/gnus/gnus-art.el +++ b/lisp/gnus/gnus-art.el | |||
| @@ -5010,7 +5010,6 @@ and `gnus-mime-delete-part', and not provided at run-time normally." | |||
| 5010 | (let ((mbl1 mml-buffer-list)) | 5010 | (let ((mbl1 mml-buffer-list)) |
| 5011 | (setq mml-buffer-list mbl) | 5011 | (setq mml-buffer-list mbl) |
| 5012 | (set (make-local-variable 'mml-buffer-list) mbl1)) | 5012 | (set (make-local-variable 'mml-buffer-list) mbl1)) |
| 5013 | (gnus-make-local-hook 'kill-buffer-hook) | ||
| 5014 | (add-hook 'kill-buffer-hook 'mml-destroy-buffers t t))) | 5013 | (add-hook 'kill-buffer-hook 'mml-destroy-buffers t t))) |
| 5015 | `(lambda (no-highlight) | 5014 | `(lambda (no-highlight) |
| 5016 | (let ((mail-parse-charset (or gnus-article-charset | 5015 | (let ((mail-parse-charset (or gnus-article-charset |
diff --git a/lisp/gnus/gnus-msg.el b/lisp/gnus/gnus-msg.el index 5bf0f7cb0bf..527735fb0a3 100644 --- a/lisp/gnus/gnus-msg.el +++ b/lisp/gnus/gnus-msg.el | |||
| @@ -495,8 +495,6 @@ Thank you for your help in stamping out bugs. | |||
| 495 | (let ((mbl1 mml-buffer-list)) | 495 | (let ((mbl1 mml-buffer-list)) |
| 496 | (setq mml-buffer-list mbl) ;; Global value | 496 | (setq mml-buffer-list mbl) ;; Global value |
| 497 | (set (make-local-variable 'mml-buffer-list) mbl1);; Local value | 497 | (set (make-local-variable 'mml-buffer-list) mbl1);; Local value |
| 498 | (gnus-make-local-hook 'kill-buffer-hook) | ||
| 499 | (gnus-make-local-hook 'change-major-mode-hook) | ||
| 500 | (add-hook 'change-major-mode-hook 'mml-destroy-buffers nil t) | 498 | (add-hook 'change-major-mode-hook 'mml-destroy-buffers nil t) |
| 501 | (add-hook 'kill-buffer-hook 'mml-destroy-buffers t t)) | 499 | (add-hook 'kill-buffer-hook 'mml-destroy-buffers t t)) |
| 502 | (mml-destroy-buffers) | 500 | (mml-destroy-buffers) |
| @@ -593,11 +591,9 @@ instead." | |||
| 593 | (defun gnus-inews-add-send-actions (winconf buffer article | 591 | (defun gnus-inews-add-send-actions (winconf buffer article |
| 594 | &optional config yanked | 592 | &optional config yanked |
| 595 | winconf-name) | 593 | winconf-name) |
| 596 | (gnus-make-local-hook 'message-sent-hook) | ||
| 597 | (add-hook 'message-sent-hook (if gnus-agent 'gnus-agent-possibly-do-gcc | 594 | (add-hook 'message-sent-hook (if gnus-agent 'gnus-agent-possibly-do-gcc |
| 598 | 'gnus-inews-do-gcc) nil t) | 595 | 'gnus-inews-do-gcc) nil t) |
| 599 | (when gnus-agent | 596 | (when gnus-agent |
| 600 | (gnus-make-local-hook 'message-header-hook) | ||
| 601 | (add-hook 'message-header-hook 'gnus-agent-possibly-save-gcc nil t)) | 597 | (add-hook 'message-header-hook 'gnus-agent-possibly-save-gcc nil t)) |
| 602 | (setq message-post-method | 598 | (setq message-post-method |
| 603 | `(lambda (&optional arg) | 599 | `(lambda (&optional arg) |
| @@ -1953,7 +1949,6 @@ this is a reply." | |||
| 1953 | (setq name (assq 'name results) | 1949 | (setq name (assq 'name results) |
| 1954 | address (assq 'address results)) | 1950 | address (assq 'address results)) |
| 1955 | (setq results (delq name (delq address results))) | 1951 | (setq results (delq name (delq address results))) |
| 1956 | (gnus-make-local-hook 'message-setup-hook) | ||
| 1957 | (setq results (sort results (lambda (x y) | 1952 | (setq results (sort results (lambda (x y) |
| 1958 | (string-lessp (car x) (car y))))) | 1953 | (string-lessp (car x) (car y))))) |
| 1959 | (dolist (result results) | 1954 | (dolist (result results) |
diff --git a/lisp/gnus/gnus-sum.el b/lisp/gnus/gnus-sum.el index a8a4c3faebc..80ffaeac2d8 100644 --- a/lisp/gnus/gnus-sum.el +++ b/lisp/gnus/gnus-sum.el | |||
| @@ -3091,7 +3091,6 @@ The following commands are available: | |||
| 3091 | (make-local-variable 'gnus-summary-dummy-line-format) | 3091 | (make-local-variable 'gnus-summary-dummy-line-format) |
| 3092 | (make-local-variable 'gnus-summary-dummy-line-format-spec) | 3092 | (make-local-variable 'gnus-summary-dummy-line-format-spec) |
| 3093 | (make-local-variable 'gnus-summary-mark-positions) | 3093 | (make-local-variable 'gnus-summary-mark-positions) |
| 3094 | (gnus-make-local-hook 'pre-command-hook) | ||
| 3095 | (add-hook 'pre-command-hook 'gnus-set-global-variables nil t) | 3094 | (add-hook 'pre-command-hook 'gnus-set-global-variables nil t) |
| 3096 | (gnus-run-mode-hooks 'gnus-summary-mode-hook) | 3095 | (gnus-run-mode-hooks 'gnus-summary-mode-hook) |
| 3097 | (turn-on-gnus-mailing-list-mode) | 3096 | (turn-on-gnus-mailing-list-mode) |
| @@ -10542,7 +10541,6 @@ groups." | |||
| 10542 | (let ((mbl1 mml-buffer-list)) | 10541 | (let ((mbl1 mml-buffer-list)) |
| 10543 | (setq mml-buffer-list mbl) | 10542 | (setq mml-buffer-list mbl) |
| 10544 | (set (make-local-variable 'mml-buffer-list) mbl1)) | 10543 | (set (make-local-variable 'mml-buffer-list) mbl1)) |
| 10545 | (gnus-make-local-hook 'kill-buffer-hook) | ||
| 10546 | (add-hook 'kill-buffer-hook 'mml-destroy-buffers t t)))) | 10544 | (add-hook 'kill-buffer-hook 'mml-destroy-buffers t t)))) |
| 10547 | `(lambda (no-highlight) | 10545 | `(lambda (no-highlight) |
| 10548 | (let ((mail-parse-charset ',gnus-newsgroup-charset) | 10546 | (let ((mail-parse-charset ',gnus-newsgroup-charset) |
diff --git a/lisp/gnus/gnus-topic.el b/lisp/gnus/gnus-topic.el index c5a1777f403..1245b964a20 100644 --- a/lisp/gnus/gnus-topic.el +++ b/lisp/gnus/gnus-topic.el | |||
| @@ -1150,7 +1150,6 @@ articles in the topic and its subtopics." | |||
| 1150 | 'gnus-group-sort-topic) | 1150 | 'gnus-group-sort-topic) |
| 1151 | (setq gnus-group-change-level-function 'gnus-topic-change-level) | 1151 | (setq gnus-group-change-level-function 'gnus-topic-change-level) |
| 1152 | (setq gnus-goto-missing-group-function 'gnus-topic-goto-missing-group) | 1152 | (setq gnus-goto-missing-group-function 'gnus-topic-goto-missing-group) |
| 1153 | (gnus-make-local-hook 'gnus-check-bogus-groups-hook) | ||
| 1154 | (add-hook 'gnus-check-bogus-groups-hook 'gnus-topic-clean-alist | 1153 | (add-hook 'gnus-check-bogus-groups-hook 'gnus-topic-clean-alist |
| 1155 | nil 'local) | 1154 | nil 'local) |
| 1156 | (setq gnus-topology-checked-p nil) | 1155 | (setq gnus-topology-checked-p nil) |
diff --git a/lisp/gnus/gnus-undo.el b/lisp/gnus/gnus-undo.el index 8206b527065..ad27e8996fb 100644 --- a/lisp/gnus/gnus-undo.el +++ b/lisp/gnus/gnus-undo.el | |||
| @@ -108,7 +108,6 @@ | |||
| 108 | ;; Set up the menu. | 108 | ;; Set up the menu. |
| 109 | (when (gnus-visual-p 'undo-menu 'menu) | 109 | (when (gnus-visual-p 'undo-menu 'menu) |
| 110 | (gnus-undo-make-menu-bar)) | 110 | (gnus-undo-make-menu-bar)) |
| 111 | (gnus-make-local-hook 'post-command-hook) | ||
| 112 | (add-hook 'post-command-hook 'gnus-undo-boundary nil t))) | 111 | (add-hook 'post-command-hook 'gnus-undo-boundary nil t))) |
| 113 | 112 | ||
| 114 | ;;; Interface functions. | 113 | ;;; Interface functions. |
diff --git a/lisp/gnus/gnus-util.el b/lisp/gnus/gnus-util.el index 950bb7feb95..6b49fc2db02 100644 --- a/lisp/gnus/gnus-util.el +++ b/lisp/gnus/gnus-util.el | |||
| @@ -129,14 +129,6 @@ This is a compatibility function for different Emacsen." | |||
| 129 | (funcall (if (stringp buffer) 'get-buffer 'buffer-name) | 129 | (funcall (if (stringp buffer) 'get-buffer 'buffer-name) |
| 130 | buffer)))) | 130 | buffer)))) |
| 131 | 131 | ||
| 132 | ;; The LOCAL arg to `add-hook' is interpreted differently in Emacs and | ||
| 133 | ;; XEmacs. In Emacs we don't need to call `make-local-hook' first. | ||
| 134 | ;; It's harmless, though, so the main purpose of this alias is to shut | ||
| 135 | ;; up the byte compiler. | ||
| 136 | (defalias 'gnus-make-local-hook (if (featurep 'xemacs) | ||
| 137 | 'make-local-hook | ||
| 138 | 'ignore)) | ||
| 139 | |||
| 140 | (defun gnus-delete-first (elt list) | 132 | (defun gnus-delete-first (elt list) |
| 141 | "Delete by side effect the first occurrence of ELT as a member of LIST." | 133 | "Delete by side effect the first occurrence of ELT as a member of LIST." |
| 142 | (if (equal (car list) elt) | 134 | (if (equal (car list) elt) |
diff --git a/lisp/gnus/message.el b/lisp/gnus/message.el index 11c10126378..6621e5a0086 100644 --- a/lisp/gnus/message.el +++ b/lisp/gnus/message.el | |||
| @@ -1939,7 +1939,6 @@ You must have the \"hashcash\" binary installed, see `hashcash-path'." | |||
| 1939 | (autoload 'gnus-group-name-charset "gnus-group") | 1939 | (autoload 'gnus-group-name-charset "gnus-group") |
| 1940 | (autoload 'gnus-group-name-decode "gnus-group") | 1940 | (autoload 'gnus-group-name-decode "gnus-group") |
| 1941 | (autoload 'gnus-groups-from-server "gnus") | 1941 | (autoload 'gnus-groups-from-server "gnus") |
| 1942 | (autoload 'gnus-make-local-hook "gnus-util") | ||
| 1943 | (autoload 'gnus-open-server "gnus-int") | 1942 | (autoload 'gnus-open-server "gnus-int") |
| 1944 | (autoload 'gnus-output-to-mail "gnus-util") | 1943 | (autoload 'gnus-output-to-mail "gnus-util") |
| 1945 | (autoload 'gnus-output-to-rmail "gnus-util") | 1944 | (autoload 'gnus-output-to-rmail "gnus-util") |
| @@ -3037,7 +3036,6 @@ M-RET `message-newline-and-reformat' (break the line and reformat)." | |||
| 3037 | (set (make-local-variable 'tool-bar-map) (message-make-tool-bar)))) | 3036 | (set (make-local-variable 'tool-bar-map) (message-make-tool-bar)))) |
| 3038 | (easy-menu-add message-mode-menu message-mode-map) | 3037 | (easy-menu-add message-mode-menu message-mode-map) |
| 3039 | (easy-menu-add message-mode-field-menu message-mode-map) | 3038 | (easy-menu-add message-mode-field-menu message-mode-map) |
| 3040 | (gnus-make-local-hook 'after-change-functions) | ||
| 3041 | ;; Mmmm... Forbidden properties... | 3039 | ;; Mmmm... Forbidden properties... |
| 3042 | (add-hook 'after-change-functions 'message-strip-forbidden-properties | 3040 | (add-hook 'after-change-functions 'message-strip-forbidden-properties |
| 3043 | nil 'local) | 3041 | nil 'local) |
diff --git a/lisp/gnus/mml.el b/lisp/gnus/mml.el index c748e8ef874..ac84fbf02d7 100644 --- a/lisp/gnus/mml.el +++ b/lisp/gnus/mml.el | |||
| @@ -35,7 +35,6 @@ | |||
| 35 | 35 | ||
| 36 | (autoload 'message-make-message-id "message") | 36 | (autoload 'message-make-message-id "message") |
| 37 | (declare-function gnus-setup-posting-charset "gnus-msg" (group)) | 37 | (declare-function gnus-setup-posting-charset "gnus-msg" (group)) |
| 38 | (autoload 'gnus-make-local-hook "gnus-util") | ||
| 39 | (autoload 'gnus-completing-read "gnus-util") | 38 | (autoload 'gnus-completing-read "gnus-util") |
| 40 | (autoload 'message-fetch-field "message") | 39 | (autoload 'message-fetch-field "message") |
| 41 | (autoload 'message-mark-active-p "message") | 40 | (autoload 'message-mark-active-p "message") |
| @@ -1590,7 +1589,6 @@ or the `pop-to-buffer' function." | |||
| 1590 | (gnus-article-prepare-display)))) | 1589 | (gnus-article-prepare-display)))) |
| 1591 | ;; Disable article-mode-map. | 1590 | ;; Disable article-mode-map. |
| 1592 | (use-local-map nil) | 1591 | (use-local-map nil) |
| 1593 | (gnus-make-local-hook 'kill-buffer-hook) | ||
| 1594 | (add-hook 'kill-buffer-hook | 1592 | (add-hook 'kill-buffer-hook |
| 1595 | (lambda () | 1593 | (lambda () |
| 1596 | (mm-destroy-parts gnus-article-mime-handles)) nil t) | 1594 | (mm-destroy-parts gnus-article-mime-handles)) nil t) |
diff --git a/lisp/gnus/nndraft.el b/lisp/gnus/nndraft.el index 5f57dd2bf7c..f6c62c8a152 100644 --- a/lisp/gnus/nndraft.el +++ b/lisp/gnus/nndraft.el | |||
| @@ -206,9 +206,7 @@ are generated if and only if they are also in `message-draft-headers'.") | |||
| 206 | (let ((hook (if (boundp 'write-contents-functions) | 206 | (let ((hook (if (boundp 'write-contents-functions) |
| 207 | 'write-contents-functions | 207 | 'write-contents-functions |
| 208 | 'write-contents-hooks))) | 208 | 'write-contents-hooks))) |
| 209 | (gnus-make-local-hook hook) | ||
| 210 | (add-hook hook 'nndraft-generate-headers nil t)) | 209 | (add-hook hook 'nndraft-generate-headers nil t)) |
| 211 | (gnus-make-local-hook 'after-save-hook) | ||
| 212 | (add-hook 'after-save-hook 'nndraft-update-unread-articles nil t) | 210 | (add-hook 'after-save-hook 'nndraft-update-unread-articles nil t) |
| 213 | (message-add-action '(nndraft-update-unread-articles) | 211 | (message-add-action '(nndraft-update-unread-articles) |
| 214 | 'exit 'postpone 'kill) | 212 | 'exit 'postpone 'kill) |