diff options
| author | Mattias EngdegÄrd | 2020-02-13 20:06:48 +0100 |
|---|---|---|
| committer | Mattias EngdegÄrd | 2020-02-13 20:43:42 +0100 |
| commit | 9f6a4bbcc96bef451c75a8a78e442dec87a0ddf0 (patch) | |
| tree | bde1d7ad47c8cea91a80c4391593515b3fd0d2ea /etc | |
| parent | d1e8ce8bb6fadf3d034ae437ff1c1b81be7d5209 (diff) | |
| download | emacs-9f6a4bbcc96bef451c75a8a78e442dec87a0ddf0.tar.gz emacs-9f6a4bbcc96bef451c75a8a78e442dec87a0ddf0.zip | |
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.
Diffstat (limited to 'etc')
| -rw-r--r-- | etc/NEWS | 7 |
1 files changed, 0 insertions, 7 deletions
| @@ -3527,13 +3527,6 @@ This is currently supported on GNUish hosts and on modern versions of | |||
| 3527 | MS-Windows. | 3527 | MS-Windows. |
| 3528 | 3528 | ||
| 3529 | +++ | 3529 | +++ |
| 3530 | ** The function 'regexp-opt' accepts an additional optional argument. | ||
| 3531 | By default, the regexp returned by 'regexp-opt' may match the strings | ||
| 3532 | in any order. If the new third argument is non-nil, the match is | ||
| 3533 | guaranteed to be performed in the order given, as if the strings were | ||
| 3534 | made into a regexp by joining them with '\|'. | ||
| 3535 | |||
| 3536 | +++ | ||
| 3537 | ** The function 'regexp-opt', when given an empty list of strings, now | 3530 | ** The function 'regexp-opt', when given an empty list of strings, now |
| 3538 | returns a regexp that never matches anything, which is an identity for | 3531 | returns a regexp that never matches anything, which is an identity for |
| 3539 | this operation. Previously, the empty string was returned in this | 3532 | this operation. Previously, the empty string was returned in this |