1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2025-01-20 18:17:20 +00:00

cl-generic.el: Fix docstring for methods with cl-call-next-method

* lisp/emacs-lisp/cl-generic.el (cl--generic-method-info):
Fix docstring extraction for "curried" methods (bug#65270).
This commit is contained in:
Stefan Monnier 2023-08-14 22:37:51 -04:00
parent a8365aa841
commit be5917c2ea

View File

@ -1101,10 +1101,10 @@ MET-NAME is as returned by `cl--generic-load-hist-format'."
(qualifiers (cl--generic-method-qualifiers method))
(call-con (cl--generic-method-call-con method))
(function (cl--generic-method-function method))
(args (help-function-arglist (if (not (eq call-con 'curried))
function
(funcall function #'ignore))
'names))
(function (if (not (eq call-con 'curried))
function
(funcall function #'ignore)))
(args (help-function-arglist function 'names))
(docstring (documentation function))
(qual-string
(if (null qualifiers) ""