GNU bug report logs - #64290
“named-let” doc bug?

Previous Next

Package: emacs;

Reported by: Shynur Xie <one.last.kiss <at> outlook.com>

Date: Sun, 25 Jun 2023 23:18:02 UTC

Severity: normal

Done: Eli Zaretskii <eliz <at> gnu.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 64290 in the body.
You can then email your comments to 64290 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#64290; Package emacs. (Sun, 25 Jun 2023 23:18:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Shynur Xie <one.last.kiss <at> outlook.com>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Sun, 25 Jun 2023 23:18:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Shynur Xie <one.last.kiss <at> outlook.com>
To: "bug-gnu-emacs <at> gnu.org" <bug-gnu-emacs <at> gnu.org>
Subject: “named-let” doc bug?
Date: Sun, 25 Jun 2023 23:16:41 +0000
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



Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#64290; Package emacs. (Mon, 26 Jun 2023 12:20:02 GMT) Full text and rfc822 format available.

Message #8 received at 64290 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Shynur Xie <one.last.kiss <at> outlook.com>,
 Stefan Monnier <monnier <at> iro.umontreal.ca>
Cc: 64290 <at> debbugs.gnu.org
Subject: Re: bug#64290: “named-let” doc bug?
Date: Mon, 26 Jun 2023 15:19:35 +0300
> From: Shynur Xie <one.last.kiss <at> outlook.com>
> Date: Sun, 25 Jun 2023 23:16:41 +0000
> msip_labels: 
> 
> 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?




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#64290; Package emacs. (Mon, 26 Jun 2023 14:00:02 GMT) Full text and rfc822 format available.

Message #11 received at 64290 <at> debbugs.gnu.org (full text, mbox):

From: Stefan Monnier <monnier <at> iro.umontreal.ca>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: Shynur Xie <one.last.kiss <at> outlook.com>, 64290 <at> debbugs.gnu.org
Subject: Re: bug#64290: “named-let” doc bug?
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.


        Stefan





Reply sent to Eli Zaretskii <eliz <at> gnu.org>:
You have taken responsibility. (Mon, 26 Jun 2023 15:44:01 GMT) Full text and rfc822 format available.

Notification sent to Shynur Xie <one.last.kiss <at> outlook.com>:
bug acknowledged by developer. (Mon, 26 Jun 2023 15:44:01 GMT) Full text and rfc822 format available.

Message #16 received at 64290-done <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Stefan Monnier <monnier <at> iro.umontreal.ca>
Cc: one.last.kiss <at> outlook.com, 64290-done <at> debbugs.gnu.org
Subject: Re: bug#64290: “named-let” doc bug?
Date: Mon, 26 Jun 2023 18:43:03 +0300
> From: Stefan Monnier <monnier <at> iro.umontreal.ca>
> Cc: Shynur Xie <one.last.kiss <at> outlook.com>,  64290 <at> debbugs.gnu.org
> 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.




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Tue, 25 Jul 2023 11:24:05 GMT) Full text and rfc822 format available.

This bug report was last modified 1 year and 334 days ago.

Previous Next


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