• Mattias Engdegård's avatar
    rx: Use longest match for all-string 'or' forms (bug#37659) · 5a21aaff
    Mattias Engdegård authored
    Revert to the Emacs 26 semantics that always gave the longest match
    for rx 'or' forms with only string arguments.  This guarantee was
    never well documented, but it is useful and people likely have come to
    rely on it.  For example, prior to this change,
    
     (rx (or ">" ">="))
    
    matched ">" even if the text contained ">=".
    
    * lisp/emacs-lisp/rx.el (rx--translate-or): Don't tell regexp-opt to
    preserve the matching order.
    * doc/lispref/searching.texi (Rx Constructs): Document the
    longest-match guarantee for all-string 'or' forms.
    * test/lisp/emacs-lisp/rx-tests.el (rx-or): Update test.
    5a21aaff
Name
Last commit
Last update
admin Loading commit data...
build-aux Loading commit data...
doc Loading commit data...
etc Loading commit data...
leim Loading commit data...
lib Loading commit data...
lib-src Loading commit data...
lisp Loading commit data...
lwlib Loading commit data...
m4 Loading commit data...
modules Loading commit data...
msdos Loading commit data...
nextstep Loading commit data...
nt Loading commit data...
oldXMenu Loading commit data...
src Loading commit data...
test Loading commit data...
.clang-format Loading commit data...
.dir-locals.el Loading commit data...
.gitattributes Loading commit data...
.gitignore Loading commit data...
.gitlab-ci.yml Loading commit data...
BUGS Loading commit data...
CONTRIBUTE Loading commit data...
COPYING Loading commit data...
ChangeLog.1 Loading commit data...
ChangeLog.2 Loading commit data...
ChangeLog.3 Loading commit data...
GNUmakefile Loading commit data...
INSTALL Loading commit data...
INSTALL.REPO Loading commit data...
Makefile.in Loading commit data...
README Loading commit data...
autogen.sh Loading commit data...
config.bat Loading commit data...
configure.ac Loading commit data...
make-dist Loading commit data...