From 162c9c058eba104b3f2b73ac29533372c08977d8 Mon Sep 17 00:00:00 2001 From: Eli Zaretskii Date: Mon, 26 Jun 2023 18:41:06 +0300 Subject: [PATCH] ; Document that 'named-let' needs lexical-binding * doc/lispref/variables.texi (Local Variables): Warn that 'named-let' only works under lexical-binding. (Bug#64290) --- doc/lispref/variables.texi | 3 +++ 1 file changed, 3 insertions(+) diff --git a/doc/lispref/variables.texi b/doc/lispref/variables.texi index 6dd935d8763..755109aac1e 100644 --- a/doc/lispref/variables.texi +++ b/doc/lispref/variables.texi @@ -350,6 +350,9 @@ variables. A function call is in the tail position if it's the very last thing done so that the value returned by the call is the value of @var{body} itself, as is the case in the recursive call to @code{sum} above. + +@strong{Warning:} @code{named-let} works as expected only when +lexical-binding is enabled. @xref{Lexical Binding}. @end defspec Here is a complete list of the other facilities that create local -- 2.39.2