emacs-diffs
[Top][All Lists]
Advanced

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

master 47e0b86611: ; Fix up doc of recent elisp-eldoc-var-docstring-with


From: Štěpán Němec
Subject: master 47e0b86611: ; Fix up doc of recent elisp-eldoc-var-docstring-with-value addition
Date: Thu, 26 May 2022 05:03:13 -0400 (EDT)

branch: master
commit 47e0b866110b25343daf025de85d5f22ed829cc1
Author: Štěpán Němec <stepnem@gmail.com>
Commit: Štěpán Němec <stepnem@gmail.com>

    ; Fix up doc of recent elisp-eldoc-var-docstring-with-value addition
---
 etc/NEWS                     | 2 ++
 lisp/progmodes/elisp-mode.el | 3 ++-
 2 files changed, 4 insertions(+), 1 deletion(-)

diff --git a/etc/NEWS b/etc/NEWS
index 0f59d545e3..4ebaf6e07a 100644
--- a/etc/NEWS
+++ b/etc/NEWS
@@ -1873,6 +1873,8 @@ functions.
 
 ---
 ** New eldoc function: 'elisp-eldoc-var-docstring-with-value'.
+This function includes the current value of the variable in eldoc display
+and can be used as a more detailed alternative to 'elisp-eldoc-var-docstring'.
 
 ** 'save-some-buffers' can now be extended to save other things.
 Traditionally, 'save-some-buffers' saved buffers, and also saved
diff --git a/lisp/progmodes/elisp-mode.el b/lisp/progmodes/elisp-mode.el
index 84b7938bf0..77bf3f1ed1 100644
--- a/lisp/progmodes/elisp-mode.el
+++ b/lisp/progmodes/elisp-mode.el
@@ -1775,7 +1775,8 @@ Also see `elisp-eldoc-var-docstring-with-value'."
 (defun elisp-eldoc-var-docstring-with-value (callback &rest _)
   "Document variable at point.
 Intended for `eldoc-documentation-functions' (which see).
-Also see `elisp-eldoc-var-docstring-with-value'."
+Compared to `elisp-eldoc-var-docstring', this also includes the
+current variable value and a bigger chunk of the docstring."
   (when-let ((cs (elisp--current-symbol)))
     (when (and (boundp cs)
               ;; nil and t are boundp!



reply via email to

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