GNU bug report logs - #74870
cl-labels and cl-flet don't create named blocks

Previous Next

Package: emacs;

Reported by: Jan Jouleodov <jouleodov <at> protonmail.com>

Date: Sat, 14 Dec 2024 16:28:02 UTC

Severity: normal

Done: Stefan Kangas <stefankangas <at> gmail.com>

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: Eli Zaretskii <eliz <at> gnu.org>
Cc: 74870 <at> debbugs.gnu.org, Jan Jouleodov <jouleodov <at> protonmail.com>
Subject: bug#74870: cl-labels and cl-flet don't create named blocks
Date: Mon, 16 Dec 2024 22:23:24 -0500
>> In ANSI CL, these should create a named CL:BLOCK, allowing one to do a local return via
>> CL:RETURN-FROM. In Emacs, this is not the case, resulting in an uncaught exception.
> I'm guessing this is a documentation bug, in that this particular
> aspect of CL is not emulated by cl-labels.
> Stefan, am I right?

Could be.  Or it could be an oversight, maybe dating back to many many
years ago, and that nobody noticed until now.

Whichever was the original reason, now we get to decide whether we keep
the behavior or not.  Following Common Lisp's lead should not introduce any
backward compatibility issue, all it would cost us is a slightly more
costly macroexpansion for those macros.


        Stefan





This bug report was last modified 138 days ago.

Previous Next


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