diff options
author | Eli Zaretskii <eliz@gnu.org> | 2023-03-12 10:25:10 +0200 |
---|---|---|
committer | Eli Zaretskii <eliz@gnu.org> | 2023-03-12 10:25:10 +0200 |
commit | 9191fd50d242cde5256b876dd756ffbc6f46db90 (patch) | |
tree | 7304beaef0cac46563ef1c22f73545faaaec2039 /doc/lispref/help.texi | |
parent | 29227e7c19100bed30b3410b399ee6a2c1ca7213 (diff) | |
download | emacs-9191fd50d242cde5256b876dd756ffbc6f46db90.tar.gz |
; Fix last change
* lisp/emacs-lisp/shortdoc.el (shortdoc-help-fns-examples-function)
(shortdoc-function-examples): Fix compilation warning and add an
empty line before the examples.
* lisp/emacs-lisp/shortdoc.el (shortdoc--insert-group-in-buffer)
(shortdoc-function-examples)
(shortdoc-help-fns-examples-function):
* etc/NEWS:
* doc/lispref/help.texi (Documentation Groups):
* doc/emacs/help.texi (Name Help): Improve documentation of
the last change. (Bug#61877)
Diffstat (limited to 'doc/lispref/help.texi')
-rw-r--r-- | doc/lispref/help.texi | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/doc/lispref/help.texi b/doc/lispref/help.texi index 3175f66122e..d5e4e1c31d3 100644 --- a/doc/lispref/help.texi +++ b/doc/lispref/help.texi @@ -995,23 +995,23 @@ shortdoc groups. @defun shortdoc-function-examples function This function returns all shortdoc examples for @var{function}. The -result is an alist with items of the form - -@example -(@var{group} . @var{examples}) -@end example - -@noindent -where @var{group} is a documentation group where @var{function} -appears in and @var{examples} is a string with the examples of use of -@var{function} defined in @var{group}. +return value is an alist with items of the form +@w{@code{(@var{group} . @var{examples})}}, where @var{group} is a +documentation group where @var{function} appears, and @var{examples} +is a string with the examples of @var{function}s use as defined in +@var{group}. @code{shortdoc-function-examples} returns @code{nil} if @var{function} -is not a function or if it doesn’t contain shortdoc information. +is not a function or if it doesn't have any shortdoc examples. @end defun +@vindex help-fns-describe-function-functions @defun shortdoc-help-fns-examples-function function -This function queries the registered documentation groups and inserts -examples of use of a given Emacs Lisp function into the current -buffer. +This function queries the registered shortdoc groups and inserts +examples of use of a given Emacs Lisp @var{function} into the current +buffer. It is suitable for addition to the +@code{help-fns-describe-function-functions} hook, in which case +examples from shortdoc of using a function will be displayed in the +@file{*Help*} buffer when the documentation of the function is +requested. @end defun |