]> git.eshelyaron.com Git - emacs.git/commit
Allow zero-argument rx `or' and `seq' forms
authorMattias Engdegård <mattiase@acm.org>
Wed, 15 May 2019 20:44:00 +0000 (22:44 +0200)
committerMattias Engdegård <mattiase@acm.org>
Mon, 20 May 2019 09:39:46 +0000 (11:39 +0200)
commitb552fc05c231ca6800330a318d3a74ddd0f5a13c
tree5e030d1bcd878517891180a58d8ba2cec62c1899
parente9f9827eb01a382bead6c180f6703322167e6f89
Allow zero-argument rx `or' and `seq' forms

Make the rx `or' and `seq' forms accept zero arguments to produce a
never-matching regexp and an empty string, respectively.

* lisp/emacs-lisp/rx.el (rx-constituents, rx-or): Permit zero args.
(rx): Amend doc string for `or' and `seq'.
* test/lisp/emacs-lisp/rx-tests.el (rx-or, rx-seq): Test the change.
* etc/NEWS (Changes in Specialized Modes and Packages): Mention the change.
etc/NEWS
lisp/emacs-lisp/rx.el
test/lisp/emacs-lisp/rx-tests.el