aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/progmodes/python.el
diff options
context:
space:
mode:
authorStefan Monnier2020-11-04 00:24:45 -0500
committerStefan Monnier2020-11-04 00:24:45 -0500
commita63d90517549b1940ffbe3438a614afc7ea1aa6d (patch)
tree37e59445c29f6e71a465b7e13c17ca0e462a0a61 /lisp/progmodes/python.el
parent9bcdebd9b7432dbdc826579c9a9ec725bbd70d53 (diff)
downloademacs-a63d90517549b1940ffbe3438a614afc7ea1aa6d.tar.gz
emacs-a63d90517549b1940ffbe3438a614afc7ea1aa6d.zip
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/progmodes/python.el')
-rw-r--r--lisp/progmodes/python.el4
1 files changed, 2 insertions, 2 deletions
diff --git a/lisp/progmodes/python.el b/lisp/progmodes/python.el
index 53b654001e3..d6feba254b4 100644
--- a/lisp/progmodes/python.el
+++ b/lisp/progmodes/python.el
@@ -4011,8 +4011,8 @@ Argument OUTPUT is a string with the output from the comint process."
4011 "Setup pdb tracking in current buffer." 4011 "Setup pdb tracking in current buffer."
4012 (make-local-variable 'python-pdbtrack-buffers-to-kill) 4012 (make-local-variable 'python-pdbtrack-buffers-to-kill)
4013 (make-local-variable 'python-pdbtrack-tracked-buffer) 4013 (make-local-variable 'python-pdbtrack-tracked-buffer)
4014 (add-to-list (make-local-variable 'comint-input-filter-functions) 4014 (add-hook 'comint-input-filter-functions
4015 #'python-pdbtrack-comint-input-filter-function) 4015 #'python-pdbtrack-comint-input-filter-function nil t)
4016 (add-to-list (make-local-variable 'comint-output-filter-functions) 4016 (add-to-list (make-local-variable 'comint-output-filter-functions)
4017 #'python-pdbtrack-comint-output-filter-function) 4017 #'python-pdbtrack-comint-output-filter-function)
4018 (add-function :before (process-sentinel (get-buffer-process (current-buffer))) 4018 (add-function :before (process-sentinel (get-buffer-process (current-buffer)))