[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#19828: [PATCH] eval.c: couldn't make closures
From: |
Nicolas Richard |
Subject: |
bug#19828: [PATCH] eval.c: couldn't make closures |
Date: |
Tue, 10 Feb 2015 12:17:39 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) |
Hello,
尾崎 成一 <mitararu@gmail.com> writes:
> The following code doesn't work because doesn't create any lexical
> environment correctly in Emacs 24.4.1.
I think this is not a bug. In order for emacs to create closures, you
need to enable lexical-binding (usually done via a file local variable
at the top of the file, e.g. using add-file-local-variable-prop-line).
See (info "(elisp) Closures").
HTH,
--
Nicolas Richard