[Top][All Lists]
[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
- Re: Should lexical-let use let in the situation lexical-binding is t ?, (continued)
- Re: Should lexical-let use let in the situation lexical-binding is t ?, Stefan Monnier, 2012/09/18
- Re: Should lexical-let use let in the situation lexical-binding is t ?, Richard Stallman, 2012/09/18
- Re: Should lexical-let use let in the situation lexical-binding is t ?, Stefan Monnier, 2012/09/18
- Re: Should lexical-let use let in the situation lexical-binding is t ?, Richard Stallman, 2012/09/19
- Re: Should lexical-let use let in the situation lexical-binding is t ?, Stefan Monnier, 2012/09/19
- Re: Should lexical-let use let in the situation lexical-binding is t ?, Sam Steingold, 2012/09/19
- Re: Should lexical-let use let in the situation lexical-binding is t ?, Stefan Monnier, 2012/09/19
- Re: Should lexical-let use let in the situation lexical-binding is t ?, Sam Steingold, 2012/09/20
Re: Should lexical-let use let in the situation lexical-binding is t ?, Sam Steingold, 2012/09/18
Re: Should lexical-let use let in the situation lexical-binding is t ?,
Tomohiro Matsuyama <=