emacs-devel
[Top][All Lists]
Advanced

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

Re: lexical mumblings


From: Miles Bader
Subject: Re: lexical mumblings
Date: 27 Oct 2001 08:39:02 +0900

"Stefan Monnier" <monnier+gnu/address@hidden> writes:
> `llet' is fine, but (use-lexical-binding) is more tricky because the
> code should also work with the interpreter which can't easily keep track
> of whether a piece of code came from a file that said (use-lexical-binding).

Hmmm...

If `load' and `eval-region' just bound the variable `use-lexical-binding'
to itself (e.g., (let ((use-lexical-binding use-lexical-binding)) ...)),
Then (use-lexical-binding) could expand into (setq use-lexical-binding t),
and the interpreted version of `let' could key off that...(!)

Of course, this leaves the question of what something like `eval-defun'
should do (although, I think this is a general problem that may be worth
fixing for other reasons too, though I can't recall them at the moment).

-miles
-- 
Suburbia: where they tear out the trees and then name streets after them.



reply via email to

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