GNU bug report logs - #79206
29.4; cl-defgeneric docstring is incorrect

Previous Next

Package: emacs;

Reported by: Sean McAfee <eefacm <at> gmail.com>

Date: Sat, 9 Aug 2025 23:38:01 UTC

Severity: normal

Found in version 29.4

Done: Eli Zaretskii <eliz <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Eli Zaretskii <eliz <at> gnu.org>
To: Sean McAfee <eefacm <at> gmail.com>, Stefan Monnier <monnier <at> iro.umontreal.ca>
Cc: 79206 <at> debbugs.gnu.org
Subject: bug#79206: 29.4; cl-defgeneric docstring is incorrect
Date: Sun, 10 Aug 2025 08:12:46 +0300
> From: Sean McAfee <eefacm <at> gmail.com>
> 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?




This bug report was last modified 4 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.