Subject: bug#36496: [PATCH] Describe the rx notation in the lisp manual

From: Mattias Engdegård <[email-masked]>
Date: Sun, 7 Jul 2019 13:31:06 +0200

7 juli 2019 kl. 04.29 skrev Eli Zaretskii <[email-masked]>:

> Thanks, LGTM.

Thanks for reviewing! Pushed to master.

7 juli 2019 kl. 01.56 skrev Richard Stallman <[email-masked]>:

> Would it be feasible to format it differently so that it comes out as
> fewer pages?  That might be possible by using Texinfo a different way.

One way, already mentioned, would be to merge the character class descriptions for rx and string regexps. That would save about one page, at the cost of making the list slightly messier since rx has synonyms for each item which are not legal in string regexps ([:digit:] vs `digit', `numeric' and `num').

Eliding the categories table would save another page, if we accept a reference to other formats or the rx doc string.

I see little room beyond that. We could remove the examples, but they are short and doing so would make an already dry section even drier.

> Here's another idea: document the two syntaxes in a single table,
> where each item says how to do the job in a regexp
> and how to do it in rx.

Probably not a bad idea and one that would put the syntaxes on equal footing, but it involves a complete rewrite of all the regexp sections; more than I am prepared to do right now.

Should this bug be kept open for possible improvements to the print manual, or can we regard that as a separate issue?