1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-02-08 08:43:52 -08:00
emacs/test/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
..
bookmark-resources Add tests for bookmark.el (Bug#36452) 2019-07-03 14:49:38 +03:00
calc Update copyright year to 2020 2020-01-01 00:59:52 +00:00
calendar Update copyright year to 2020 2020-01-01 00:59:52 +00:00
cedet Fix copyright years by hand 2020-01-01 01:01:53 +00:00
custom-resources New test custom--test-theme-variables 2019-01-10 13:27:34 +01:00
emacs-lisp rx: Use longest match for all-string 'or' forms (bug#37659) 2020-02-12 11:20:47 +01:00
emulation Update copyright year to 2020 2020-01-01 00:59:52 +00:00
erc Update copyright year to 2020 2020-01-01 00:59:52 +00:00
eshell Update copyright year to 2020 2020-01-01 00:59:52 +00:00
gnus Update copyright year to 2020 2020-01-01 00:59:52 +00:00
image Update copyright year to 2020 2020-01-01 00:59:52 +00:00
international Update copyright year to 2020 2020-01-01 00:59:52 +00:00
mail Update copyright year to 2020 2020-01-01 00:59:52 +00:00
net Update copyright year to 2020 2020-01-01 00:59:52 +00:00
nxml Update copyright year to 2020 2020-01-01 00:59:52 +00:00
obsolete Update copyright year to 2020 2020-01-01 00:59:52 +00:00
org Update copyright year to 2020 2020-01-01 00:59:52 +00:00
play Update copyright year to 2020 2020-01-01 00:59:52 +00:00
progmodes f90: handle F2008 module function 2020-01-15 18:47:51 -08:00
so-long-tests Update copyright year to 2020 2020-01-01 00:59:52 +00:00
term Update copyright year to 2020 2020-01-01 00:59:52 +00:00
textmodes Update copyright year to 2020 2020-01-01 00:59:52 +00:00
url Update copyright year to 2020 2020-01-01 00:59:52 +00:00
vc Update copyright year to 2020 2020-01-01 00:59:52 +00:00
abbrev-tests.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
arc-mode-tests.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
auth-source-pass-tests.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
auth-source-tests.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
autoinsert-tests.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
autorevert-tests.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
bookmark-tests.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
buff-menu-tests.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
button-tests.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
char-fold-tests.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
color-tests.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
comint-tests.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
custom-tests.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
dabbrev-tests.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
delim-col-tests.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
descr-text-tests.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
dired-aux-tests.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
dired-tests.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
dired-x-tests.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
dom-tests.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
electric-tests.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
epg-tests.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
faces-tests.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
ffap-tests.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
filenotify-tests.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
files-tests.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
files-x-tests.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
font-lock-tests.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
format-spec-tests.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
help-fns-tests.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
help-tests.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
hi-lock-tests.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
htmlfontify-tests.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
ibuffer-tests.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
ido-tests.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
image-file-tests.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
image-tests.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
imenu-tests.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
info-xref-tests.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
isearch-tests.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
jit-lock-tests.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
json-tests.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
jsonrpc-tests.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
kmacro-tests.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
ls-lisp-tests.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
makesum-tests.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
man-tests.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
md4-tests.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
minibuffer-tests.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
mouse-tests.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
obarray-tests.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
paren-tests.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
password-cache-tests.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
ps-print-tests.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
register-tests.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
replace-tests.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
rot13-tests.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
scroll-lock-tests.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
ses-tests.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
shadowfile-tests.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
shell-tests.el Fix shell-tests failures 2020-01-20 15:52:27 +01:00
simple-tests.el * test/lisp/simple-tests.el: Full path to Emacs binary (bug#39067). 2020-01-20 14:27:38 +01:00
sort-tests.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
soundex-tests.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
subr-tests.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
tabify-tests.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
tar-mode-tests.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
tempo-tests.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
term-tests.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
thingatpt-tests.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
thread-tests.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
time-stamp-tests.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
timezone-tests.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
wdired-tests.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
whitespace-tests.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
wid-edit-tests.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
xdg-tests.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
xml-tests.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
xt-mouse-tests.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00