]> git.eshelyaron.com Git - emacs.git/commit
Fix shortdoc examples
authorMattias Engdegård <mattiase@acm.org>
Fri, 28 May 2021 09:43:24 +0000 (11:43 +0200)
committerMattias Engdegård <mattiase@acm.org>
Sat, 29 May 2021 07:18:00 +0000 (09:18 +0200)
commit93162efd7901ada02995103797237beb2d49a04e
tree601fcc881efa6a61abf1ffbb7281c84f8e7f2535
parent0eb0fe987b62540f892954d0eb09bb9e44cc6b08
Fix shortdoc examples

Make sure that each example in shortdoc actually contains the function
it illustrates, and add a test for it.

* lisp/emacs-lisp/shortdoc.el (string, list, buffer, number):
Use the right functions in examples for string-version-lessp,
lax-plist-put, point-min and ffloor.
* test/lisp/emacs-lisp/shortdoc-tests.el: New test file.
lisp/emacs-lisp/shortdoc.el
test/lisp/emacs-lisp/shortdoc-tests.el [new file with mode: 0644]