emacs/test/lisp/emacs-lisp
Mattias Engdegård 5a21aaff46 rx: Use longest match for all-string 'or' forms (bug#37659)
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.
2020-02-12 11:20:47 +01:00
..
edebug-resources Update copyright year to 2020 2020-01-01 00:59:52 +00:00
eieio-tests Update copyright year to 2020 2020-01-01 00:59:52 +00:00
faceup-resources Update copyright year to 2020 2020-01-01 00:59:52 +00:00
faceup-tests Update copyright year to 2020 2020-01-01 00:59:52 +00:00
package-resources Don't try to add nil packages on refresh 2019-10-21 00:00:36 +02:00
shadow-resources Handle case-insensitive filenames for load-path shadows (Bug#5845) 2018-01-18 16:26:52 -05:00
testcover-resources Update copyright year to 2020 2020-01-01 00:59:52 +00:00
backquote-tests.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
backtrace-tests.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
benchmark-tests.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
bindat-tests.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
bytecomp-tests.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
cconv-tests.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
checkdoc-tests.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
cl-extra-tests.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
cl-generic-tests.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
cl-lib-tests.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
cl-macs-tests.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
cl-preloaded-tests.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
cl-print-tests.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
cl-seq-tests.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
derived-tests.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
edebug-tests.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
ert-tests.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
ert-x-tests.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
generator-tests.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
gv-tests.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
let-alist-tests.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
lisp-mode-tests.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
lisp-tests.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
map-tests.el Replace add-to-list to lexical variable with push (bug#39373) 2020-02-01 22:27:23 +01:00
nadvice-tests.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
package-tests.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
pcase-tests.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
pp-tests.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
regexp-opt-tests.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
ring-tests.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
rmc-tests.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
rx-tests.el rx: Use longest match for all-string 'or' forms (bug#37659) 2020-02-12 11:20:47 +01:00
seq-tests.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
shadow-tests.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
subr-x-tests.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
tabulated-list-test.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
testcover-tests.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
text-property-search-tests.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
thunk-tests.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
timer-tests.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00