]> git.eshelyaron.com Git - emacs.git/commit
Fix function arity check for noncompiled callees (bug#78685)
authorMattias EngdegÄrd <mattiase@acm.org>
Tue, 17 Jun 2025 18:18:53 +0000 (20:18 +0200)
committerEshel Yaron <me@eshelyaron.com>
Wed, 18 Jun 2025 08:15:27 +0000 (10:15 +0200)
commit2b8ea0032890ed71110007dbc32a7768652c0a28
treef721f94a18147adf933659b1249a13cffac168e3
parente94ca804e60e89ef7de16e257f56fc0ed4d418f4
Fix function arity check for noncompiled callees (bug#78685)

This fixes a regression from Emacs 29, and is the second attempt after
the later reverted 8b0f5b0597.

* 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 3f720049614d825bd83d584e07d68e6461cf9708)
lisp/emacs-lisp/bytecomp.el
test/lisp/emacs-lisp/bytecomp-tests.el