diff options
author | Andrea Corallo <akrl@sdf.org> | 2020-11-14 22:07:54 +0100 |
---|---|---|
committer | Andrea Corallo <akrl@sdf.org> | 2020-11-14 22:07:54 +0100 |
commit | 2a8bf2222dd5d786375c131aa13dd1ea6f0cf104 (patch) | |
tree | 4f69d049302a8144783ff697f6a73d7e3e585539 /lisp/emacs-lisp/rx.el | |
parent | f702426780475309bdd33ef896d28dd33484246b (diff) | |
parent | ad29bc74ca9d4e1768698d4002b49c234624e359 (diff) | |
download | emacs-2a8bf2222dd5d786375c131aa13dd1ea6f0cf104.tar.gz emacs-2a8bf2222dd5d786375c131aa13dd1ea6f0cf104.tar.bz2 emacs-2a8bf2222dd5d786375c131aa13dd1ea6f0cf104.zip |
Merge remote-tracking branch 'savannah/master' into dev
Diffstat (limited to 'lisp/emacs-lisp/rx.el')
-rw-r--r-- | lisp/emacs-lisp/rx.el | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/emacs-lisp/rx.el b/lisp/emacs-lisp/rx.el index 8d8d071031c..76c3ac31b85 100644 --- a/lisp/emacs-lisp/rx.el +++ b/lisp/emacs-lisp/rx.el @@ -1413,7 +1413,7 @@ into a plain rx-expression, collecting names into `rx--pcase-vars'." (mapconcat #'symbol-name rx--pcase-vars " "))) `(backref ,index))) ((and `(,head . ,rest) - (guard (and (symbolp head) + (guard (and (or (symbolp head) (memq head '(?\s ??))) (not (memq head '(literal regexp regex eval)))))) (cons head (mapcar #'rx--pcase-transform rest))) (_ rx))) |