[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#61877: [PATCH] Extract Lisp function examples from shortdoc informat
From: |
Eli Zaretskii |
Subject: |
bug#61877: [PATCH] Extract Lisp function examples from shortdoc information |
Date: |
Sun, 12 Mar 2023 15:25:26 +0200 |
> From: Daniel Martín <mardani29@yahoo.es>
> Cc: 61877@debbugs.gnu.org
> Date: Sun, 12 Mar 2023 13:55:49 +0100
>
> > 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.
It works here; I installed it.
Thanks.