• Mattias Engdegård's avatar
    Allow zero-argument rx `or' and `seq' forms · afdc20d7
    Mattias Engdegård authored
    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: Require cl-extra.
    (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.
    afdc20d7
rx-tests.el 4.45 KB