Subject: Re: bug#62840: 30.0.50; Doc bug: obsolete paragraph in Elisp Ref

From: Eli Zaretskii <[email-masked]>
Date: Tue, 18 Apr 2023 14:31:47 +0300

> From: Stefan Monnier <[email-masked]>
> Cc: Nick Dokos <[email-masked]>,  [email-masked]
> Date: Sat, 15 Apr 2023 09:11:37 -0400
> 
> Indeed the "with a `t` at the end" should probably not have been
> documented and can be removed.  The `t` can still appear there
> (sometimes it does sometimes it doesn't).  More important would be to
> document that beside (SYM . VAL) pairs, the env can contain symbols,
> which means that the lexical environment declared that variable as being
> locally considered as a dynbind variable.
> 
> E.g. in
> 
>     (defun my-fun (baz)
>       (defvar my-foo)
>       (lambda (x) (let ((my-foo x)) (bar baz))))
> 
> `my-foo` will appear in the environment of the closure returned by the
> function so as to remember the `defvar` since it affects the execution
> of the body.

Thanks, fixed on the emacs-29 branch, and closing the bug.