bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#64128: regexp parser zero-width assertion bugs


From: Paul Eggert
Subject: bug#64128: regexp parser zero-width assertion bugs
Date: Mon, 19 Jun 2023 11:14:18 -0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.11.0

On 2023-06-18 13:26, Mattias Engdegård wrote:
The manual is a bit hazy about what we actually promise, though.

As Paul notes, we must be able to document it and that might not be easy, so 
perhaps we shouldn't even try (to change, or document)?

Although it's not easy to document, we should do better. I gave that a shot by installing the attached patches into the master branch. These patches try to document current behavior, including warning about the squirrelly behavior you mention. If/when we fix the squirrelly behavior we can change that part of the manual accordingly.

The last of the three patches is merely a terminology change: it standardizes on the term "bracket expression" for regexps like [a-z]. Formerly the doc and comments were inconsistent about the terminology. It's better to stick with the POSIX term here, to avoid confusion. I myself got confused about this when editing the other two patches.

Comments welcome as usual.

Attachment: 0001-Document-regular-expression-special-cases-better.patch
Description: Text Data

Attachment: 0002-Document-Emacs-vs-POSIX-REs.patch
Description: Text Data

Attachment: 0003-Call-them-bracket-expressions-more-consistently.patch
Description: Text Data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]