]> git.eshelyaron.com Git - emacs.git/commit
cl-generic: Fix `advertised-calling-convention` declarations
authorStefan Monnier <monnier@iro.umontreal.ca>
Sun, 16 Oct 2022 16:01:47 +0000 (12:01 -0400)
committerStefan Monnier <monnier@iro.umontreal.ca>
Sun, 16 Oct 2022 16:01:47 +0000 (12:01 -0400)
commit13d6e8fa54843b0b087e5a9c266e4b7e0d709c3f
tree1c09984f5d78c711416d7748bf83051789a0ac00
parent0e5fc2345d8ec72fd8f7ad51ce1e42040e0e91da
cl-generic: Fix `advertised-calling-convention` declarations

* lisp/emacs-lisp/cl-generic.el (cl-generic-define-method):
Preserve the `advertised-calling-convention`, if any (bug#58563).

* lisp/subr.el (declare): Warn when we hit this.

* lisp/emacs-lisp/byte-run.el (get-advertised-calling-convention): New fun.
* lisp/progmodes/elisp-mode.el (elisp-get-fnsym-args-string):
* lisp/help-fns.el (help-fns--signature):
* lisp/emacs-lisp/bytecomp.el (byte-compile-fdefinition): Use it.

* test/lisp/emacs-lisp/cl-generic-tests.el (cl-generic-tests--acc): New fun.
(cl-generic-tests--advertised-calling-convention-bug58563): New test.
lisp/emacs-lisp/byte-run.el
lisp/emacs-lisp/bytecomp.el
lisp/emacs-lisp/cl-generic.el
lisp/help-fns.el
lisp/progmodes/elisp-mode.el
lisp/subr.el
test/lisp/emacs-lisp/cl-generic-tests.el