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

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

bug#34641: rx: (or ...) order unpredictable


From: Mattias Engdegård
Subject: bug#34641: rx: (or ...) order unpredictable
Date: Sun, 24 Feb 2019 22:18:28 +0100

24 feb. 2019 kl. 20.06 skrev Eli Zaretskii <eliz@gnu.org>:
> 
> Your preferred solution is fine with me, FWIW.

Thank you; patch attached.

>> (Speaking of regexp-opt, it has another bug that does not affect rx: it 
>> returns the empty string if given an empty list of strings. The correct 
>> return value is a regexp that never matches anything. Fix it, document it, 
>> or turn it into an error?)
> 
> Fix it, I think.

I'll prepare another patch. Is there a preferred or particularly clever 
never-matching regexp? If not, would \(?:$\)A do?

Attachment: 0001-rx-fix-or-ordering-by-adding-argument-to-regexp-opt.patch
Description: Binary data


reply via email to

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