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


Message #19 received at 79206-done <at> debbugs.gnu.org (full text, mbox):

From: Sean McAfee <eefacm <at> gmail.com>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 79206-done <at> debbugs.gnu.org, Stefan Monnier <monnier <at> iro.umontreal.ca>
Subject: Re: bug#79206: 29.4; cl-defgeneric docstring is incorrect
Date: Sun, 10 Aug 2025 13:09:43 -0700
[Message part 1 (text/plain, inline)]
Oops!  I just sent this reply to Eli only.  Resending...

On Sun, Aug 10, 2025 at 1:46 AM Eli Zaretskii <eliz <at> gnu.org> wrote:

> Thanks, I've now fixed the doc string on the emacs-30 release branch
> to say that, and I'm therefore closing this bug.
>

Actually, I notice now that even without a DEFAULT-BODY, ARGS is
type-checked:

ELISP> (cl-defgeneric foo 0)
*** Eval error ***  Wrong type argument: sequencep, 0
ELISP> (cl-defgeneric foo "")
*** Eval error ***  Unrecognized usage format
ELISP> (cl-defgeneric foo [])
*** Eval error ***  Wrong type argument: listp, []

But:

ELISP> (cl-defgeneric foo nil)
nil
ELISP> (cl-defgeneric bar 'bar)
nil

(I dunno why that last one passes.)

So ARGS is not really ignored, even if its value is not used.
[Message part 2 (text/html, inline)]

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.