]> git.eshelyaron.com Git - emacs.git/commit
Fix pcase rx form snag with '?' and '??' (bug#44532)
authorMattias EngdegÄrd <mattiase@acm.org>
Mon, 9 Nov 2020 16:11:05 +0000 (17:11 +0100)
committerEli Zaretskii <eliz@gnu.org>
Mon, 9 Nov 2020 16:59:24 +0000 (18:59 +0200)
commit78e1646bf7bde8f00c196319f4803e98460d506a
treedf9ff3a595c356760fb22029ebf718f607ac4c72
parent75384bd1555feca0ba11948ed71e4b557b8da59f
Fix pcase rx form snag with '?' and '??' (bug#44532)

This is a regression from Emacs 26.
Reported by Phillip Stephani.

* lisp/emacs-lisp/rx.el (rx--pcase-transform): Process ? and ?? correctly.
* test/lisp/emacs-lisp/rx-tests.el (rx-pcase): Add test case.

(cherry picked from commit 575b0681d926463960fc00d1e33decaa71d5c956)
lisp/emacs-lisp/rx.el
test/lisp/emacs-lisp/rx-tests.el