diff options
author | Mattias EngdegÄrd <mattiase@acm.org> | 2019-06-30 12:53:52 +0200 |
---|---|---|
committer | Mattias EngdegÄrd <mattiase@acm.org> | 2019-07-04 17:18:15 +0200 |
commit | 3fd74915121a3eac265170e20bd19b3cde6a2589 (patch) | |
tree | 7abac1b1a1c5241dc9226edf2e99373dd0e966f8 /lisp/emacs-lisp/generic.el | |
parent | 2bc90e0ce0f349b8c80aa8df782f991b64aa7398 (diff) | |
download | emacs-3fd74915121a3eac265170e20bd19b3cde6a2589.tar.gz |
Optimise more inputs to `regexp-opt' (bug#36444)
Use a more precise test to determine whether the input to `regexp-opt'
is safe to optimise when KEEP-ORDER is non-nil, permitting more inputs
to be optimised than before. For example, ("good" "goal" "go") is now
accepted.
* lisp/emacs-lisp/regexp-opt.el (regexp-opt):
More precise test for whether the list is safe w.r.t. KEEP-ORDER.
(regexp-opt--contains-prefix): Remove.
* test/lisp/emacs-lisp/regexp-opt-tests.el: Use lexical-binding.
(regexp-opt-test--permutation, regexp-opt-test--factorial)
(regexp-opt-test--permutations, regexp-opt-test--match-all)
(regexp-opt-test--check-perm, regexp-opt-test--explain-perm)
(regexp-opt-keep-order): Test KEEP-ORDER.
Diffstat (limited to 'lisp/emacs-lisp/generic.el')
0 files changed, 0 insertions, 0 deletions