summaryrefslogtreecommitdiff
path: root/lisp/ielm.el
diff options
context:
space:
mode:
authorStefan Monnier <monnier@iro.umontreal.ca>2020-11-04 00:24:45 -0500
committerStefan Monnier <monnier@iro.umontreal.ca>2020-11-04 00:24:45 -0500
commita63d90517549b1940ffbe3438a614afc7ea1aa6d (patch)
tree37e59445c29f6e71a465b7e13c17ca0e462a0a61 /lisp/ielm.el
parent9bcdebd9b7432dbdc826579c9a9ec725bbd70d53 (diff)
downloademacs-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/ielm.el')
-rw-r--r--lisp/ielm.el7
1 files changed, 4 insertions, 3 deletions
diff --git a/lisp/ielm.el b/lisp/ielm.el
index b3654b91d37..91d025dd5dd 100644
--- a/lisp/ielm.el
+++ b/lisp/ielm.el
@@ -533,9 +533,10 @@ Customized bindings may be defined in `ielm-map', which currently contains:
(set (make-local-variable 'paragraph-start) comint-prompt-regexp)
(setq comint-input-sender 'ielm-input-sender)
(setq comint-process-echoes nil)
- (set (make-local-variable 'completion-at-point-functions)
- '(comint-replace-by-expanded-history
- ielm-complete-filename elisp-completion-at-point))
+ (dolist (f '(elisp-completion-at-point
+ ielm-complete-filename
+ comint-replace-by-expanded-history))
+ (add-hook 'completion-at-point-functions f nil t))
(add-hook 'eldoc-documentation-functions
#'elisp-eldoc-var-docstring nil t)
(add-hook 'eldoc-documentation-functions