From 47e0b866110b25343daf025de85d5f22ed829cc1 Mon Sep 17 00:00:00 2001 From: =?utf8?q?=C5=A0t=C4=9Bp=C3=A1n=20N=C4=9Bmec?= Date: Thu, 26 May 2022 10:58:22 +0200 Subject: [PATCH] ; 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 0f59d545e37..4ebaf6e07ad 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 84b7938bf0d..77bf3f1ed18 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! -- 2.39.2