emacs-devel
[Top][All Lists]
Advanced

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

Re: lexical-binding questions


From: Johan Bockgård
Subject: Re: lexical-binding questions
Date: Wed, 16 May 2012 00:59:06 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.1.50 (gnu/linux)

Stefan Monnier <address@hidden> writes:

>>> (setq lexical-binding t)
>>> (let ((nil 0)) nil)  => 0
>
> Anyway, I guess nil and t should be marked as special-variable-p, if for
> no other reason than because they are pretty damn special.

The problem also applies to keyword symbols.

I was thinking

      if (!NILP (lexenv) && SYMBOLP (var)
+         && !SYMBOL_CONSTANT_P (var)
          && !XSYMBOL (var)->declared_special
          && NILP (Fmemq (var, Vinternal_interpreter_environment)))
        /* Lexically bind VAR by adding it to the lexenv alist.  */
        lexenv = Fcons (Fcons (var, tem), lexenv);

in let/let*.



reply via email to

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