]> git.eshelyaron.com Git - emacs.git/commit
Remove the optional KEEP-ORDER argument to regexp-opt
authorMattias Engdegård <mattiase@acm.org>
Thu, 13 Feb 2020 19:06:48 +0000 (20:06 +0100)
committerMattias Engdegård <mattiase@acm.org>
Thu, 13 Feb 2020 19:43:42 +0000 (20:43 +0100)
commit9f6a4bbcc96bef451c75a8a78e442dec87a0ddf0
treebde1d7ad47c8cea91a80c4391593515b3fd0d2ea
parentd1e8ce8bb6fadf3d034ae437ff1c1b81be7d5209
Remove the optional KEEP-ORDER argument to regexp-opt

This argument was added for the 'or' clause in rx, but it turned out
to be a bad idea (bug#37659), and there seems to be little other use
for it.

* lisp/emacs-lisp/regexp-opt.el (regexp-opt): Remove KEEP-ORDER.
* doc/lispref/searching.texi (Regexp Functions):
* etc/NEWS: Remove it from the documentation.
* test/lisp/emacs-lisp/regexp-opt-tests.el (regexp-opt-test--match-all)
(regexp-opt-test--check-perm, regexp-opt-test--explain-perm)
(regexp-opt-keep-order, regexp-opt-longest-match): Simplify test.
doc/lispref/searching.texi
etc/NEWS
lisp/emacs-lisp/regexp-opt.el
test/lisp/emacs-lisp/regexp-opt-tests.el