aboutsummaryrefslogtreecommitdiffstats
path: root/java
diff options
context:
space:
mode:
authorDaniel Martín2023-02-28 23:15:40 +0100
committerEli Zaretskii2023-03-12 09:54:06 +0200
commit29227e7c19100bed30b3410b399ee6a2c1ca7213 (patch)
tree4cfde01d3e6841d9ea54194c1e3bb785d464c8b7 /java
parent31f18480ca7291070837a305c64685c3e76afde3 (diff)
downloademacs-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