emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

scratch/eldoc-async c5fb6f5 1/2: Also use new Eldoc functions when evalu


From: Joo Tvora
Subject: scratch/eldoc-async c5fb6f5 1/2: Also use new Eldoc functions when evaluating Elisp expressions
Date: Sat, 6 Jun 2020 11:34:04 -0400 (EDT)

branch: scratch/eldoc-async
commit c5fb6f522aa927ac5e99d271b48ab9415375ff31
Author: João Távora <joaotavora@gmail.com>
Commit: João Távora <joaotavora@gmail.com>

    Also use new Eldoc functions when evaluating Elisp expressions
    
    * lisp/emacs-lisp/eldoc.el (eldoc--eval-expression-setup): Setup
    new Elisp eldoc-documentation-functions.
---
 lisp/emacs-lisp/eldoc.el | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/lisp/emacs-lisp/eldoc.el b/lisp/emacs-lisp/eldoc.el
index e79b881..575a132 100644
--- a/lisp/emacs-lisp/eldoc.el
+++ b/lisp/emacs-lisp/eldoc.el
@@ -231,7 +231,10 @@ expression point is on." :lighter eldoc-minor-mode-string
   ;; Setup `eldoc', similar to `emacs-lisp-mode'.  FIXME: Call
   ;; `emacs-lisp-mode' itself?
   (add-hook 'eldoc-documentation-functions
-            #'elisp-eldoc-documentation-function nil t)
+            #'elisp-eldoc-var-docstring nil t)
+  (add-hook 'eldoc-documentation-functions
+            #'elisp-eldoc-funcall nil t)
+  (setq eldoc-documentation-strategy 'eldoc-documentation-default)
   (eldoc-mode +1))
 
 ;;;###autoload



reply via email to

[Prev in Thread] Current Thread [Next in Thread]