]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix ElDoc setup for eval-expression
authorBasil L. Contovounesios <contovob@tcd.ie>
Fri, 12 Feb 2021 21:26:08 +0000 (21:26 +0000)
committerBasil L. Contovounesios <contovob@tcd.ie>
Fri, 12 Feb 2021 21:28:47 +0000 (21:28 +0000)
* lisp/emacs-lisp/eldoc.el (eldoc--eval-expression-setup): Don't set
global value of eldoc-documentation-strategy (bug#44886).

lisp/emacs-lisp/eldoc.el

index 90e075b1102d5d45f677906ea3842852d2109cfd..c95540ea3cfacf2e0a91008c632534042965c11d 100644 (file)
@@ -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