GNU bug report logs - #77348
30.1; cl-labels

Previous Next

Package: emacs;

Reported by: Devon Sean McCullough <Emacs-hacker2023 <at> jovi.net>

Date: Fri, 28 Mar 2025 23:11:02 UTC

Severity: normal

Found in version 30.1

Done: Stefan Monnier <monnier <at> iro.umontreal.ca>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Stefan Monnier <monnier <at> iro.umontreal.ca>
To: Michael Heerdegen <michael_heerdegen <at> web.de>
Cc: Devon Sean McCullough <Emacs-hacker2023 <at> jovi.net>, 77348 <at> debbugs.gnu.org
Subject: bug#77348: 30.1; cl-labels
Date: Sun, 30 Mar 2025 00:45:40 -0400
>> Instrument the following forms for edebug,
>> e.g., by C-u M-x eval-defun RET
>> with point on the form.
>>
>> (cl-labels ((foo (bar))))
>> ;; (error "Eager macro-expansion failure: (error \"Invalid argument
>>    name: 1\")")
>>
>> ;; should work same as
>> (cl-labels ((foo (bar) nil)))
>> ;; nil after manually stepping

In recent Emacs, the above two forms aren't equivalent any more:

    (cl-labels ((foo (bar))))

now defines `foo` as the function returned by calling `bar`.

> @Stefan: did you forget to mention the (FUNC EXP) binding definition
> case in the docstring of `cl-labels'?

Indeed.  Somehow I updated the Texinfo doc but not the docstring.
I just fixed that in `emacs-30`, thanks.


        Stefan





This bug report was last modified 141 days ago.

Previous Next


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