]> 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)
committerMattias Engdegård <mattiase@acm.org>
Mon, 9 Nov 2020 16:28:37 +0000 (17:28 +0100)
commit575b0681d926463960fc00d1e33decaa71d5c956
tree4b20bdde66789d734928c5dbda08f01c752eb765
parent52937958064223bec3ad518363d3cc50d995b259
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.
lisp/emacs-lisp/rx.el
test/lisp/emacs-lisp/rx-tests.el