]> git.eshelyaron.com Git - emacs.git/commitdiff
cl-generic.el: Fix docstring for methods with `cl-call-next-method`
authorStefan Monnier <monnier@iro.umontreal.ca>
Tue, 15 Aug 2023 02:37:51 +0000 (22:37 -0400)
committerStefan Monnier <monnier@iro.umontreal.ca>
Tue, 15 Aug 2023 02:38:01 +0000 (22:38 -0400)
* lisp/emacs-lisp/cl-generic.el (cl--generic-method-info):
Fix docstring extraction for "curried" methods (bug#65270).

lisp/emacs-lisp/cl-generic.el

index b062c280a410ffdb887e9188b47995a75e1355ef..dec14bd5df60b190e746db2c9eddd6ebddaa225f 100644 (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) ""