]> git.eshelyaron.com Git - emacs.git/commit
Use `or' instead of `union' for charset union in rx
authorMattias Engdegård <mattiase@acm.org>
Thu, 12 Dec 2019 22:04:00 +0000 (23:04 +0100)
committerMattias Engdegård <mattiase@acm.org>
Thu, 12 Dec 2019 22:47:25 +0000 (23:47 +0100)
commitf16766a0eb2a78b58a4856d31306fc37f913d70e
treed3be560c8aaf4f4d3a59b285e27aab224922bb33
parentd7efe98951730842db4fc136e3b631c5ee0d8a53
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 `|'.
doc/lispref/searching.texi
etc/NEWS
lisp/emacs-lisp/rx.el
test/lisp/emacs-lisp/rx-tests.el