Subject: Re: bug#79206: 29.4; cl-defgeneric docstring is incorrect

From: Eli Zaretskii <[email-masked]>
Date: Sun, 10 Aug 2025 08:12:46 +0300

> From: Sean McAfee <[email-masked]>
> Date: Sat, 9 Aug 2025 16:36:37 -0700
> 
> The docstring for cl-defgeneric reads:
> 
> (cl-defgeneric NAME ARGS [DOC-STRING] [OPTIONS-AND-METHODS...] &rest
> DEFAULT-BODY)
> [...]
> With this implementation the ARGS are currently ignored.
> [...]
> 
> However, this is not the case, as seen in this excerpt from an ielm buffer:
> 
> ELISP> (cl-defgeneric foo (x y) (+ x y))
> foo
> ELISP> (foo 1 2)
> 3 (#o3, #x3, ?\C-c)

It also says "A generic function has no body", right?

Stefan, I guess that the arguments are ignored if there's no body, is
that right?