]> git.eshelyaron.com Git - emacs.git/commit
Fix function arity check for noncompiled callees (bug#78685)
authorMattias EngdegÄrd <mattiase@acm.org>
Thu, 5 Jun 2025 16:11:43 +0000 (18:11 +0200)
committerEshel Yaron <me@eshelyaron.com>
Sat, 7 Jun 2025 20:01:23 +0000 (22:01 +0200)
commitc5b1d0b954ad89792e3359303e2eb95b48bb72ae
treeca516fa0f53afb9397b33c3c2cb0e97467501311
parenta1d6e359b485296e0d76f5a19eec7eae1a0b172f
Fix function arity check for noncompiled callees (bug#78685)

This is a regression from Emacs 29.

* lisp/emacs-lisp/bytecomp.el (byte-compile-fdefinition):
Make it work for functions that aren't compiled.
* test/lisp/emacs-lisp/bytecomp-tests.el (bytecomp-tests--f):
(bytecomp-tests--warn-arity-noncompiled-callee): Add test.

(cherry picked from commit 8b0f5b05976a99e82e54d6c602d47a8668ccd9d5)
lisp/emacs-lisp/bytecomp.el
test/lisp/emacs-lisp/bytecomp-tests.el