]> git.eshelyaron.com Git - emacs.git/commit
Fix shortdoc-add-function section creation
authorBasil L. Contovounesios <contovob@tcd.ie>
Mon, 21 Jun 2021 15:00:39 +0000 (16:00 +0100)
committerBasil L. Contovounesios <contovob@tcd.ie>
Mon, 21 Jun 2021 15:20:22 +0000 (16:20 +0100)
commit3b1d69efc32c8929281f38d55cef773e4680f2ad
tree12dc2807a8a035e0436b09655758d16a22d6c553
parent09f17ac4752e18bf834d2f20ceef561cc516d917
Fix shortdoc-add-function section creation

* lisp/emacs-lisp/shortdoc.el (shortdoc-add-function): Use nconc to
actually append a new section to the list of groups while avoiding a
previous OBOE.  Push a new group to the front of shortdoc--groups
without copying it, just like define-short-documentation-group does.
(buffer): Fix copypasta in unlock-buffer example.

* test/lisp/emacs-lisp/shortdoc-tests.el (shortdoc-examples): Also
check that :no-value forms demonstrate the right function.

* doc/lispref/help.texi (Documentation Groups): Clarify that @dots
in the define-short-documentation-group arglist refer to whole
key-value pairs.  Fix typo in :eg-result-string description.
doc/lispref/help.texi
lisp/emacs-lisp/shortdoc.el
test/lisp/emacs-lisp/shortdoc-tests.el