[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: lexical-binding rationale?
From: |
Stefan Monnier |
Subject: |
Re: lexical-binding rationale? |
Date: |
Fri, 13 Jan 2012 13:37:22 -0500 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.0.92 (gnu/linux) |
> Maybe it's fine the way it is. My impression was that it was going to
> be affected by a local variable setting in the current buffer, but IIUC
> it is a local variable setting in the buffer from which elisp is being
> read (? this isn't entirely clear—and it should be—from the
> documentation).
Right. The variable is looked up when calling `eval', not when
processing let-bindings. So indeed it is the value in the buffer from
which the code was `read' that is important, rather than the value in
the buffer that happens to be current when a new binding is created.
Stefan