GNU bug report logs - #19828
[PATCH] eval.c: couldn't make closures

Previous Next

Package: emacs;

Reported by: 尾崎 成一 <mitararu <at> gmail.com>

Date: Tue, 10 Feb 2015 08:41:04 UTC

Severity: normal

Tags: notabug

Done: Stefan Monnier <monnier <at> IRO.UMontreal.CA>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Nicolas Richard <theonewiththeevillook <at> yahoo.fr>
To: 尾崎 成一 <mitararu <at> gmail.com>
Cc: 19828 <at> debbugs.gnu.org
Subject: bug#19828: [PATCH] eval.c: couldn't make closures
Date: Tue, 10 Feb 2015 12:17:39 +0100
Hello,

尾崎 成一 <mitararu <at> 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




This bug report was last modified 10 years and 107 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.