; Fix up doc of recent elisp-eldoc-var-docstring-with-value addition
This commit is contained in:
parent
036b72575a
commit
47e0b86611
2 changed files with 4 additions and 1 deletions
2
etc/NEWS
2
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
|
||||
|
|
|
@ -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!
|
||||
|
|
Loading…
Add table
Reference in a new issue