]> git.eshelyaron.com Git - emacs.git/commit
Fix pluralization in shortdoc-help-fns-examples-function
authorDaniel Martín <mardani29@yahoo.es>
Sun, 12 Mar 2023 12:38:34 +0000 (13:38 +0100)
committerEli Zaretskii <eliz@gnu.org>
Sun, 12 Mar 2023 13:22:38 +0000 (15:22 +0200)
commitd19416d15c29368112fba9a7437930abcec9af3b
treec5df370d894a4a9bf9884c55652637c513f52e0e
parent9191fd50d242cde5256b876dd756ffbc6f46db90
Fix pluralization in shortdoc-help-fns-examples-function

* lisp/emacs-lisp/shortdoc.el (shortdoc-help-fns-examples-function):
Implement a better logic to pluralize "Example", by counting the
number of arrow characters in the example string. (Bug#61877)
* test/lisp/emacs-lisp/shortdoc-tests.el
(shortdoc-help-fns-examples-function-test): Add a test.
lisp/emacs-lisp/shortdoc.el
test/lisp/emacs-lisp/shortdoc-tests.el