Subject: Re: bug#74870: cl-labels and cl-flet don't create named blocks

From: Michael Heerdegen <[email-masked]>
Date: Thu, 19 Dec 2024 17:28:39 +0100

Eli Zaretskii <[email-masked]> 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 <[email-masked]>, 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.