Fix ElDoc setup for eval-expression
* lisp/emacs-lisp/eldoc.el (eldoc--eval-expression-setup): Don't set global value of eldoc-documentation-strategy (bug#44886).
This commit is contained in:
parent
f8dbefbaa5
commit
c3163069a1
1 changed files with 2 additions and 1 deletions
|
@ -248,7 +248,8 @@ expression point is on." :lighter eldoc-minor-mode-string
|
||||||
#'elisp-eldoc-var-docstring nil t)
|
#'elisp-eldoc-var-docstring nil t)
|
||||||
(add-hook 'eldoc-documentation-functions
|
(add-hook 'eldoc-documentation-functions
|
||||||
#'elisp-eldoc-funcall nil t)
|
#'elisp-eldoc-funcall nil t)
|
||||||
(setq eldoc-documentation-strategy 'eldoc-documentation-default)))
|
(setq-local eldoc-documentation-strategy
|
||||||
|
'eldoc-documentation-default)))
|
||||||
(eldoc-mode +1))
|
(eldoc-mode +1))
|
||||||
|
|
||||||
;;;###autoload
|
;;;###autoload
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue