]> git.eshelyaron.com Git - emacs.git/commit
Fix rx error with ? and ??
authorMattias Engdegård <mattiase@acm.org>
Thu, 5 Mar 2020 11:49:26 +0000 (12:49 +0100)
committerMattias Engdegård <mattiase@acm.org>
Thu, 5 Mar 2020 11:55:54 +0000 (12:55 +0100)
commit1814c7e158685045278f991de5eba4e40e8c8199
treed5410f610b70f28207b617bfb793067d36808207
parent40fb20061e6b9b2b22aeee5b7e9f038dc9ba843b
Fix rx error with ? and ??

The ? and ?? rx operators are special in that they can be written as
characters (space and '?' respectively).  This confused the definition
look-up mechanism in rare cases.

* lisp/emacs-lisp/rx.el (rx--expand-def): Don't look up non-symbols.
* test/lisp/emacs-lisp/rx-tests.el (rx-charset-or): Test.
lisp/emacs-lisp/rx.el
test/lisp/emacs-lisp/rx-tests.el