[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Trouble with lexical-binding.
From: |
Stefan Monnier |
Subject: |
Re: Trouble with lexical-binding. |
Date: |
Wed, 15 Apr 2015 10:34:05 -0400 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) |
> You're right: it's not a closure any more. That seems to be an
> uncomfortable inconsistency with lambda: whether or not it generates a
> lambda or a closure depends on when and how it's evaluated.
No, it's simply that `(...) is an expression which returns a list. In
your case this list starts with the `lambda' symbol. If you want to get
a closure from it, you need to pass that list to `eval'.
> I hope you'll forgive me pointing out that the doc string and section in
> the elisp manual haven't been updated to describe these complications.
I don't know which doc-string to change, nor how. Same for the Elisp
manual section.
Stefan
Re: Trouble with lexical-binding., Stefan Monnier, 2015/04/13