emacs-devel
[Top][All Lists]
Advanced

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

Re: lexical-binding rationale?


From: Dave Abrahams
Subject: Re: lexical-binding rationale?
Date: Fri, 13 Jan 2012 14:19:54 -0500
User-agent: Gnus/5.110018 (No Gnus v0.18) Emacs/24.0.92 (darwin)

on Fri Jan 13 2012, Stefan Monnier <monnier-AT-iro.umontreal.ca> wrote:

>> 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.

IMO it's a documentation bug that I had to ask that question.  Could
someone please fix that?

Thanks,

-- 
Dave Abrahams
BoostPro Computing
http://www.boostpro.com



reply via email to

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