emacs-devel
[Top][All Lists]
Advanced

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

Re: Should lexical-let use let in the situation lexical-binding is t ?


From: Tomohiro Matsuyama
Subject: Re: Should lexical-let use let in the situation lexical-binding is t ?
Date: Sat, 22 Sep 2012 03:18:24 +0900

> As mentioned in my reply there, the two aren't quite compatible (because
> (lexical-let ((tab-width 4)) foo) will be a lexical binding, whereas
> (let ((tab-width 4)) foo) will be a dynamic binding) so we could do
> that, but only after checking that the lexical-let-bound variable is not
> defvar'd, and this requires checking byte-compile-bound-variables, so it's
> rather ugly to do from a macro.
I'm very convinced by your example.  Thank you!

By the way, isn't it possible to check if the symbol is declared as special or 
not by accessing declared_special field of the symbol?

Regards,
Tomohiro



reply via email to

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