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: Michael Heerdegen <michael_heerdegen <at> web.de>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 74870 <at> debbugs.gnu.org, Stefan Monnier <monnier <at> iro.umontreal.ca>, Jan Jouleodov <jouleodov <at> protonmail.com>
Subject: bug#74870: cl-labels and cl-flet don't create named blocks
Date: Thu, 19 Dec 2024 17:28:39 +0100
Eli Zaretskii <eliz <at> gnu.org> writes:

> I'm guessing this is a documentation bug, in that this particular
> aspect of CL is not emulated by cl-labels.

I dug a bit into the history.

`flet's implementation indeed lost its implicit `cl-block' in

  de7e2b36875 Get rid of cl-lexical-let, keeping only lexical-let for
  compatibility.
  Stefan Monnier <monnier <at> iro.umontreal.ca>, Thu Jun 7 2012

probably by accident.

OTOH it looks like `cl-labels' never created implicit blocks.  As the
manual describes it as especially useful for recursive local function
bindings, this case is maybe also a bit different.


Michael.




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.