diff options
| author | Mattias EngdegÄrd | 2020-11-24 10:37:37 +0100 |
|---|---|---|
| committer | Mattias EngdegÄrd | 2020-11-24 10:37:37 +0100 |
| commit | 89a24e4d0538e312bb0787ecb515bf7bd68fc04e (patch) | |
| tree | 0d37fa90ae7ae03e811373181145d805fd7b8990 | |
| parent | 329feffc68238e293854ca2183801056bdd8a6ff (diff) | |
| download | emacs-89a24e4d0538e312bb0787ecb515bf7bd68fc04e.tar.gz emacs-89a24e4d0538e312bb0787ecb515bf7bd68fc04e.zip | |
Autoload the 'rx' pcase macroexpander (bug#44807)
* lisp/emacs-lisp/rx.el (rx--pcase-macroexpander]): Autoload.
| -rw-r--r-- | lisp/emacs-lisp/rx.el | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lisp/emacs-lisp/rx.el b/lisp/emacs-lisp/rx.el index 76c3ac31b85..6d33299e202 100644 --- a/lisp/emacs-lisp/rx.el +++ b/lisp/emacs-lisp/rx.el | |||
| @@ -1418,6 +1418,7 @@ into a plain rx-expression, collecting names into `rx--pcase-vars'." | |||
| 1418 | (cons head (mapcar #'rx--pcase-transform rest))) | 1418 | (cons head (mapcar #'rx--pcase-transform rest))) |
| 1419 | (_ rx))) | 1419 | (_ rx))) |
| 1420 | 1420 | ||
| 1421 | ;;;###autoload | ||
| 1421 | (pcase-defmacro rx (&rest regexps) | 1422 | (pcase-defmacro rx (&rest regexps) |
| 1422 | "A pattern that matches strings against `rx' REGEXPS in sexp form. | 1423 | "A pattern that matches strings against `rx' REGEXPS in sexp form. |
| 1423 | REGEXPS are interpreted as in `rx'. The pattern matches any | 1424 | REGEXPS are interpreted as in `rx'. The pattern matches any |