]> git.eshelyaron.com Git - emacs.git/commit
function-put: signal error with non-symbol
authorStefan Kangas <stefankangas@gmail.com>
Tue, 1 Apr 2025 19:25:33 +0000 (21:25 +0200)
committerEshel Yaron <me@eshelyaron.com>
Thu, 3 Apr 2025 16:50:19 +0000 (18:50 +0200)
commit47ae1a398e4c4b9baf12be2975e08f8bd97b4f5d
treecb41f0399aacd78d3e2eabb76c3eabeec2a4f9a4
parentd010a0cf23a8758f185bb42406c3db8d461068b2
function-put: signal error with non-symbol

* lisp/subr.el (function-get): Signal an error if given a non-symbol
for consistency with 'get'.
* test/lisp/subr-tests.el (subr-butlast): Test for the above.

(cherry picked from commit a4ec9ca12969018cdf15b8cc713b3ba054326f99)
lisp/subr.el
test/lisp/subr-tests.el