From: Eli Zaretskii Date: Mon, 26 Jun 2023 15:41:06 +0000 (+0300) Subject: ; Document that 'named-let' needs lexical-binding X-Git-Tag: emacs-29.1-rc1~104 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=162c9c058eba104b3f2b73ac29533372c08977d8;p=emacs.git ; Document that 'named-let' needs lexical-binding * doc/lispref/variables.texi (Local Variables): Warn that 'named-let' only works under lexical-binding. (Bug#64290) --- 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