]> git.eshelyaron.com Git - emacs.git/commit
Fix string-replace error data
authorBasil L. Contovounesios <contovob@tcd.ie>
Sun, 7 Mar 2021 14:55:15 +0000 (14:55 +0000)
committerBasil L. Contovounesios <contovob@tcd.ie>
Sun, 7 Mar 2021 14:55:15 +0000 (14:55 +0000)
commit8558ecd65fc1c87345353f6352299df04280e729
tree8ca6004388be0b05e9a352122c9845588bb73a9d
parent564b6391f809b3fe0807825b219f2534f2196630
Fix string-replace error data

* lisp/subr.el (string-replace): Signal an error with data that is a
list, and whose contents are consistent with other uses of
wrong-length-argument.
* test/lisp/subr-tests.el (string-replace): Test for this.
(subr-test-define-prefix-command): Pacify byte-compiler warnings.
lisp/subr.el
test/lisp/subr-tests.el