]> git.eshelyaron.com Git - emacs.git/commit
Fix (rx-to-string (and (literal STR) (regexp STR)) regression
authorNoam Postavsky <npostavs@gmail.com>
Wed, 26 Jun 2019 12:47:56 +0000 (08:47 -0400)
committerNoam Postavsky <npostavs@gmail.com>
Wed, 26 Jun 2019 12:50:27 +0000 (08:50 -0400)
commit9233865b7005831e63755eb84ae7da060f878a55
treecf63da70311c6e2fef3e51f575776eca8173a0de
parent260b6c2c931d74ef64dacb20b7fcae6f888e6d42
Fix (rx-to-string (and (literal STR) (regexp STR)) regression

* lisp/emacs-lisp/rx.el (rx-regexp, rx-literal): Check the cadr of the
form for stringness, not the form itself.
* test/lisp/emacs-lisp/rx-tests.el (rx-to-string-lisp-forms): New test.
lisp/emacs-lisp/rx.el
test/lisp/emacs-lisp/rx-tests.el