GNU bug report logs - #11782
24.1; closure is not self-quoting

Previous Next

Package: emacs;

Reported by: Christopher Schmidt <christopher <at> ch.ristopher.com>

Date: Mon, 25 Jun 2012 18:52:01 UTC

Severity: normal

Found in version 24.1

Done: Christopher Schmidt <christopher <at> ch.ristopher.com>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: help-debbugs <at> gnu.org (GNU bug Tracking System)
To: Christopher Schmidt <christopher <at> ch.ristopher.com>
Cc: tracker <at> debbugs.gnu.org
Subject: bug#11782: closed (24.1; closure is not self-quoting)
Date: Wed, 29 May 2013 07:08:02 +0000
[Message part 1 (text/plain, inline)]
Your message dated Wed, 29 May 2013 08:05:38 +0100 (BST)
with message-id <871u8q8dv8 <at> ch.ristopher.com>
and subject line Re: bug#11782: 24.1; closure is not self-quoting
has caused the debbugs.gnu.org bug report #11782,
regarding 24.1; closure is not self-quoting
to be marked as done.

(If you believe you have received this mail in error, please contact
help-debbugs <at> gnu.org.)


-- 
11782: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=11782
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
From: Christopher Schmidt <christopher <at> ch.ristopher.com>
To: bug-gnu-emacs <at> gnu.org
Subject: 24.1; closure is not self-quoting
Date: Mon, 25 Jun 2012 19:47:02 +0100 (BST)
I am not exactly sure if this is a bug, a feature or something that is
just undefined.

    (funcall (eval (eval '(let ((var)) (lambda ())))))

works fine, whereas

    (funcall (eval (eval '(let ((lex-var)) (lambda ())) t)))

does not work.

Backtrace:

    Debugger entered--Lisp error: (void-function closure)
      (closure ((lex-var) t) nil)
      eval((closure ((lex-var) t) nil))
      (funcall (eval (eval (quote (let ((lex-var)) (lambda nil))) t)))
      eval((funcall (eval (eval (quote (let ((lex-var)) (lambda nil))) t))))

I am on GNU Emacs 24.1.1 (x86_64-unknown-linux-gnu, GTK+ Version
2.24.10).

        Christopher


[Message part 3 (message/rfc822, inline)]
From: Christopher Schmidt <christopher <at> ch.ristopher.com>
To: 11782-done <at> debbugs.gnu.org
Subject: Re: bug#11782: 24.1; closure is not self-quoting
Date: Wed, 29 May 2013 08:05:38 +0100 (BST)
Stefan Monnier <monnier <at> iro.umontreal.ca> writes:
>     In Emacs Lisp, such a list is valid as an expression--it evaluates
>     to itself.
>
> Clearly this doc needs to be fixed since it confuses lambda
> expressions and lambda values and while this conflation mostly worked
> in dynamic binding, it does not work any more in the presence of
> closures.  I just installed the patch below.

Thanks a lot!

        Christopher


This bug report was last modified 12 years and 49 days ago.

Previous Next


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