mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-15 10:30:25 -08:00
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.
This commit is contained in:
parent
9bcdebd9b7
commit
a63d905175
12 changed files with 56 additions and 65 deletions
|
|
@ -795,8 +795,8 @@ In this mode, widgets represent the search results.
|
|||
(set (make-local-variable 'revert-buffer-function)
|
||||
#'secrets-show-collections)
|
||||
;; When we toggle, we must set temporary widgets.
|
||||
(set (make-local-variable 'tree-widget-after-toggle-functions)
|
||||
'(secrets-tree-widget-after-toggle-function)))
|
||||
(add-hook 'tree-widget-after-toggle-functions
|
||||
#'secrets-tree-widget-after-toggle-function nil t))
|
||||
|
||||
;; It doesn't make sense to call it interactively.
|
||||
(put 'secrets-mode 'disabled t)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue