Subject: bug#39373: 27.0.50; [PATCH] mode-local-print-bindings broken with lexical-binding

From: Eli Zaretskii <[email-masked]>
Date: Sun, 02 Feb 2020 05:31:25 +0200

> From: Mattias Engdegård <[email-masked]>
> Date: Sat, 1 Feb 2020 22:40:16 +0100
> Cc: Eli Zaretskii <[email-masked]>, [email-masked]
> 
> > BTW, this problem doesn't affect only `add-to-list`.  Other culprits
> > include `add-hook`, `run-hooks`, `set`, and `symbol-value`.
> 
> Right. I see that some of them are detected by the compiler (in byte-compile-form), but add-to-list is commented out.
> 
> The set of functions is a bit open-ended; there is also add-to-ordered-list, add-to-history, etc. Not sure how much text needs to be added for all these. There is a general note about lexical variables and symbol values in the manual, in the section about lexical binding.

I'd prefer to have a short note in the description of each one of
them.

Thanks.