emacs/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
..
advice.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
autoload.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
avl-tree.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
backquote.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
backtrace.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
benchmark.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
bindat.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
byte-opt.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
byte-run.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
bytecomp.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
cconv.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
chart.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
check-declare.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
checkdoc.el Fix wording and punctuation of a recent commit 2020-01-17 11:35:35 +02:00
cl-extra.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
cl-generic.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
cl-indent.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
cl-lib.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
cl-macs.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
cl-preloaded.el Fix copyright years by hand 2020-01-01 01:01:53 +00:00
cl-print.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
cl-seq.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
copyright.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
crm.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
cursor-sensor.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
debug.el * lisp/emacs-lisp/debug.el (debug): Merge the non-interactive cases 2020-01-31 16:09:42 +02:00
derived.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
disass.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
easy-mmode.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
easymenu.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
edebug.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
eieio-base.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
eieio-compat.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
eieio-core.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
eieio-custom.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
eieio-datadebug.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
eieio-opt.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
eieio-speedbar.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
eieio.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
eldoc.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
elint.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
elp.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
ert-x.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
ert.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
ewoc.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
faceup.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
find-func.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
float-sup.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
generator.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
generic.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
gv.el Correct "different than" to "different from" where appropriate 2020-02-09 14:33:14 +00:00
helper.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
inline.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
let-alist.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
lisp-mnt.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
lisp-mode.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
lisp.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
macroexp.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
map-ynp.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
map.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
nadvice.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
package-x.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
package.el More accurate documentation of 'package-menu-hide-package' 2020-02-08 11:38:52 +02:00
pcase.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
pp.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
radix-tree.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
re-builder.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
regexp-opt.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
regi.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
ring.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
rmc.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
rx.el rx: Use longest match for all-string 'or' forms (bug#37659) 2020-02-12 11:20:47 +01:00
seq.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
shadow.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
smie.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
subr-x.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
syntax.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
tabulated-list.el Move “Fix some broken conditional forms” to master 2020-01-05 11:50:31 -08:00
tcover-ses.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
tcover-unsafep.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
testcover.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
text-property-search.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
thunk.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
timer-list.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
timer.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
tq.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
trace.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
unsafep.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
warnings.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00