From: Basil L. Contovounesios Date: Fri, 12 Feb 2021 21:26:08 +0000 (+0000) Subject: Fix ElDoc setup for eval-expression X-Git-Tag: emacs-28.0.90~3781 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=c3163069a1e0a9aba16ae110ec75ace948e2ce0c;p=emacs.git 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). --- diff --git a/lisp/emacs-lisp/eldoc.el b/lisp/emacs-lisp/eldoc.el index 90e075b1102..c95540ea3cf 100644 --- a/lisp/emacs-lisp/eldoc.el +++ b/lisp/emacs-lisp/eldoc.el @@ -248,7 +248,8 @@ expression point is on." :lighter eldoc-minor-mode-string #'elisp-eldoc-var-docstring nil t) (add-hook 'eldoc-documentation-functions #'elisp-eldoc-funcall nil t) - (setq eldoc-documentation-strategy 'eldoc-documentation-default))) + (setq-local eldoc-documentation-strategy + 'eldoc-documentation-default))) (eldoc-mode +1)) ;;;###autoload