diff options
| author | Daniel MartÃn | 2023-02-28 23:15:40 +0100 |
|---|---|---|
| committer | Eli Zaretskii | 2023-03-12 09:54:06 +0200 |
| commit | 29227e7c19100bed30b3410b399ee6a2c1ca7213 (patch) | |
| tree | 4cfde01d3e6841d9ea54194c1e3bb785d464c8b7 /java | |
| parent | 31f18480ca7291070837a305c64685c3e76afde3 (diff) | |
| download | emacs-29227e7c19100bed30b3410b399ee6a2c1ca7213.tar.gz emacs-29227e7c19100bed30b3410b399ee6a2c1ca7213.zip | |
Add functions to query Emacs Lisp examples registered in shortdoc
* lisp/emacs-lisp/shortdoc.el (shortdoc--display-function): Add
a new shortdoc-example text property so that ELisp examples can
be searched for later.
(shortdoc--insert-group-in-buffer): New function extracted from
the buffer insertion code in 'shortdoc-display-group'.
(shortdoc-display-group): Implement in terms of
'shortdoc--insert-group-in-buffer'.
(shortdoc-function-examples): New function that returns an alist
of Emacs Lisp examples from shortdoc.
(shortdoc-help-fns-examples-function): New function to insert
Emacs Lisp function examples in *Help* buffers, if added to
'help-fns-describe-function-functions'.
*
test/lisp/emacs-lisp/shortdoc-tests.el (shortdoc-function-examples-test):
Test it.
* doc/emacs/help.texi (Name Help): Document in the user manual.
* doc/lispref/help.texi (Documentation Groups): Document it.
* etc/NEWS: Advertise it. (Bug#61877)
Diffstat (limited to 'java')
0 files changed, 0 insertions, 0 deletions