Autoload the 'rx' pcase macroexpander (bug#44807)

* lisp/emacs-lisp/rx.el (rx--pcase-macroexpander]): Autoload.
This commit is contained in:
Mattias Engdegård 2020-11-24 10:37:37 +01:00
parent 329feffc68
commit 89a24e4d05

View file

@ -1418,6 +1418,7 @@ into a plain rx-expression, collecting names into `rx--pcase-vars'."
(cons head (mapcar #'rx--pcase-transform rest)))
(_ rx)))
;;;###autoload
(pcase-defmacro rx (&rest regexps)
"A pattern that matches strings against `rx' REGEXPS in sexp form.
REGEXPS are interpreted as in `rx'. The pattern matches any