[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#61877: [PATCH] Extract Lisp function examples from shortdoc informat
From: |
Daniel Martín |
Subject: |
bug#61877: [PATCH] Extract Lisp function examples from shortdoc information |
Date: |
Sun, 12 Mar 2023 13:55:49 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/28.2 (darwin) |
Eli Zaretskii <eliz@gnu.org> writes:
> Btw, something seems amiss: "C-h f" for string-fill, which has 2
> examples in shortdoc, still says "Example:", not "Examples:", as I'd
> expect. Can you take a look?
That is because some functions have more than one example per group (for
example, string-lessp is documented in the "comparison" and "string"
groups), but the "s" is added when a function is documented in _more
than one group_.
I think a more accurate logic to add the "s" is to count the number of
"arrow characters" that separate the form from the example.
Could you give a try to the attached patch, and install it for me if all
works correctly? Thanks.
0001-Fix-pluralization-in-shortdoc-help-fns-examples-func.patch
Description: Text Data