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
|
@ -4011,8 +4011,8 @@ Argument OUTPUT is a string with the output from the comint process."
|
|||
"Setup pdb tracking in current buffer."
|
||||
(make-local-variable 'python-pdbtrack-buffers-to-kill)
|
||||
(make-local-variable 'python-pdbtrack-tracked-buffer)
|
||||
(add-to-list (make-local-variable 'comint-input-filter-functions)
|
||||
#'python-pdbtrack-comint-input-filter-function)
|
||||
(add-hook 'comint-input-filter-functions
|
||||
#'python-pdbtrack-comint-input-filter-function nil t)
|
||||
(add-to-list (make-local-variable 'comint-output-filter-functions)
|
||||
#'python-pdbtrack-comint-output-filter-function)
|
||||
(add-function :before (process-sentinel (get-buffer-process (current-buffer)))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue