diff options
author | Stefan Monnier <monnier@iro.umontreal.ca> | 2020-11-04 00:24:45 -0500 |
---|---|---|
committer | Stefan Monnier <monnier@iro.umontreal.ca> | 2020-11-04 00:24:45 -0500 |
commit | a63d90517549b1940ffbe3438a614afc7ea1aa6d (patch) | |
tree | 37e59445c29f6e71a465b7e13c17ca0e462a0a61 /lisp/mail/rmail.el | |
parent | 9bcdebd9b7432dbdc826579c9a9ec725bbd70d53 (diff) | |
download | emacs-a63d90517549b1940ffbe3438a614afc7ea1aa6d.tar.gz |
Fix misuses of `make-local-variable` on hooks
* lisp/vc/smerge-mode.el (smerge-ediff):
* lisp/progmodes/python.el (python-pdbtrack-setup-tracking):
* lisp/net/tramp-smb.el (tramp-smb-call-winexe):
* lisp/net/secrets.el (secrets-mode):
* lisp/mail/rmail.el (rmail-variables):
* lisp/ielm.el (inferior-emacs-lisp-mode):
* lisp/erc/erc-log.el (erc-log-setup-logging): Use `add-hook`.
* lisp/eshell/em-unix.el (eshell/diff):
* lisp/eshell/em-hist.el (eshell-hist-initialize): Don't
`make-local-variable` on hooks.
Diffstat (limited to 'lisp/mail/rmail.el')
-rw-r--r-- | lisp/mail/rmail.el | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lisp/mail/rmail.el b/lisp/mail/rmail.el index 86084b03f47..2c972ee7aac 100644 --- a/lisp/mail/rmail.el +++ b/lisp/mail/rmail.el @@ -1492,8 +1492,7 @@ If so restore the actual mbox message collection." (setq require-final-newline nil) (make-local-variable 'version-control) (setq version-control 'never) - (make-local-variable 'kill-buffer-hook) - (add-hook 'kill-buffer-hook 'rmail-mode-kill-summary) + (add-hook 'kill-buffer-hook #'rmail-mode-kill-summary nil t) (make-local-variable 'file-precious-flag) (setq file-precious-flag t) (make-local-variable 'desktop-save-buffer) |