emacs/test/lisp
Mattias Engdegård 49d3cd90bd rx: Improve 'or' compositionality (bug#37659)
Perform 'regexp-opt' on nested 'or' forms, and after expansion of
user-defined and 'eval' forms.  Characters are now turned into strings
for wider 'regexp-opt' scope.  This preserves the longest-match
semantics for string in 'or' forms over composition.

* doc/lispref/searching.texi (Rx Constructs): Document.
* lisp/emacs-lisp/rx.el (rx--normalise-or-arg)
(rx--all-string-or-args): New.
(rx--translate-or): Normalise arguments first, and check for strings
in subforms.
(rx--expand-eval): Extracted from rx--translate-eval.
(rx--translate-eval): Call rx--expand-eval.
* test/lisp/emacs-lisp/rx-tests.el (rx-or, rx-def-in-or): Add tests.
* etc/NEWS: Announce.
2020-03-01 10:47:14 +01:00
..
bookmark-resources
calc
calendar
cedet
custom-resources
emacs-lisp
emulation
erc
eshell
gnus
image
international
mail
net
nxml
obsolete
org
play
progmodes
so-long-tests
term
textmodes
url
vc
abbrev-tests.el
arc-mode-tests.el
auth-source-pass-tests.el
auth-source-tests.el
autoinsert-tests.el
autorevert-tests.el
bookmark-tests.el
buff-menu-tests.el
button-tests.el
char-fold-tests.el
color-tests.el
comint-tests.el
custom-tests.el
dabbrev-tests.el
delim-col-tests.el
descr-text-tests.el
dired-aux-tests.el
dired-tests.el
dired-x-tests.el
dom-tests.el
electric-tests.el
epg-tests.el
faces-tests.el
ffap-tests.el
filenotify-tests.el
files-tests.el
files-x-tests.el
font-lock-tests.el
format-spec-tests.el
help-fns-tests.el
help-tests.el
hi-lock-tests.el
htmlfontify-tests.el
ibuffer-tests.el
ido-tests.el
image-file-tests.el
image-tests.el
imenu-tests.el
info-xref-tests.el
isearch-tests.el
jit-lock-tests.el
json-tests.el
jsonrpc-tests.el
kmacro-tests.el
ls-lisp-tests.el
makesum-tests.el
man-tests.el
md4-tests.el
minibuffer-tests.el
mouse-tests.el
obarray-tests.el
paren-tests.el
password-cache-tests.el
ps-print-tests.el
register-tests.el
replace-tests.el
rot13-tests.el
scroll-lock-tests.el
ses-tests.el
shadowfile-tests.el
shell-tests.el
simple-tests.el
sort-tests.el
soundex-tests.el
subr-tests.el
tabify-tests.el
tar-mode-tests.el
tempo-tests.el
term-tests.el
thingatpt-tests.el
thread-tests.el
time-stamp-tests.el
timezone-tests.el
wdired-tests.el
whitespace-tests.el
wid-edit-tests.el
xdg-tests.el
xml-tests.el
xt-mouse-tests.el