Subject: bug#64290: closed (Re: bug#64290: “named-let”doc bug?)

From: [email-masked] (GNU bug Tracking System)
Date: Mon, 26 Jun 2023 15:44:02 +0000

Your bug report

#64290: “named-let” doc bug?

which was filed against the emacs package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to [email-masked].

-- 
64290: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=64290
GNU Bug Tracking System
Contact [email-masked] with problems

Subject: Re: bug#64290: “named-let” doc bug?
From: Eli Zaretskii <[email-masked]>
To: Stefan Monnier <[email-masked]>
Cc: [email-masked], [email-masked]
Date: Mon, 26 Jun 2023 18:43:03 +0300
List-Id: <debbugs-submit.debbugs.gnu.org>

> From: Stefan Monnier <[email-masked]>
> Cc: Shynur Xie <[email-masked]>,  [email-masked]
> Date: Mon, 26 Jun 2023 09:59:13 -0400
> 
> >> The following code seems fine semantically and grammatically:
> >> 
> >>     ;; -*- lexical-binding: nil; -*-
> >>     (named-let f ((n 1))
> >>       (dotimes (i n)
> >>         (f 0)))
> >> 
> >> But it throws error.
> >> 
> >> Perhaps we should clarify that “‘named-let’ works as expected only
> >> when ‘lexical-binding’ is enabled” in relevant doc?
> >
> > Stefan, any comments?
> 
> That or adding a check in `named-let` and raise an error when applicable.

I went with the former on the release branch.  I think raising an
error is only appropriate for the master branch, if we even think it's
a good idea.

Subject: “named-let” doc bug?
From: Shynur Xie <[email-masked]>
To: "[email-masked]" <[email-masked]>
Date: Sun, 25 Jun 2023 23:16:41 +0000
List-Id: <debbugs-submit.debbugs.gnu.org>

The following code seems fine semantically and grammatically:

    ;; -*- lexical-binding: nil; -*-
    (named-let f ((n 1))
      (dotimes (i n)
        (f 0)))

But it throws error.

Perhaps we should clarify that “‘named-let’ works as expected only
when ‘lexical-binding’ is enabled” in relevant doc?

--
shynur