diff options
author | Mattias EngdegÄrd <mattiase@acm.org> | 2019-12-12 23:04:00 +0100 |
---|---|---|
committer | Mattias EngdegÄrd <mattiase@acm.org> | 2019-12-12 23:47:25 +0100 |
commit | f16766a0eb2a78b58a4856d31306fc37f913d70e (patch) | |
tree | d3be560c8aaf4f4d3a59b285e27aab224922bb33 /etc | |
parent | d7efe98951730842db4fc136e3b631c5ee0d8a53 (diff) | |
download | emacs-f16766a0eb2a78b58a4856d31306fc37f913d70e.tar.gz |
Use `or' instead of `union' for charset union in rx
Design change suggested by Stefan Monnier.
* doc/lispref/searching.texi (Rx Constructs):
* etc/NEWS: Document.
* lisp/emacs-lisp/rx.el (rx--translate-or): Detect charset arguments.
(rx--charset-p): New.
(rx--translate-not, rx--charset-intervals, rx--translate-union):
Change from `union' to `or'.
(rx--translate-form, rx--builtin-forms, rx): Remove `union'.
* test/lisp/emacs-lisp/rx-tests.el (rx-union, rx-def-in-union)
(rx-intersection): Rename tests and change `union' to `or' and `|'.
Diffstat (limited to 'etc')
-rw-r--r-- | etc/NEWS | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -2120,9 +2120,9 @@ These macros add new forms to the rx notation. Both match any single character; 'anychar' is more descriptive. +++ -*** New 'union' and 'intersection' forms for character sets. -These permit composing character-matching expressions from simpler -parts. +*** New 'intersection' form for character sets. +With 'or' and 'not', it can be used to compose character-matching +expressions from simpler parts. ** Frames |