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.

Full log


View this message in rfc822 format

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: 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





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.