emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Why is lexical-binding's global value ignored?


From: Eli Zaretskii
Subject: Re: Why is lexical-binding's global value ignored?
Date: Sun, 29 Jan 2023 08:54:11 +0200

> Date: Sat, 28 Jan 2023 15:34:28 -0700
> From: abq@bitrot.link
> 
> tomas wrote:
> > The docs only talk about a buffer-local variable, so I'd guess that
> > the global variable of the same name is simply ignored.
> 
> Yes, and my question is: Why not honor it, instead of ignoring it?

Wasn't that already explained?  What happens if you say

  (setq-default lexical-binding t)

and then load a Lisp file that expects dynamic-binding by default?

IOW, the lack of lexical-binding: cookie in a file is interpreted as
having an explicit "lexical-binding: nil" in that file, for the
reasons Tomas explained.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]