From: Christopher Schmidt <christopher@ch.ristopher.com>
To: 11782@debbugs.gnu.org
Subject: bug#11782: 24.1; closure is not self-quoting
Date: Fri, 20 Jul 2012 14:38:07 +0100 (BST) [thread overview]
Message-ID: <878vee364e@ch.ristopher.com> (raw)
In-Reply-To: <jwva9yuocom.fsf-monnier+gnus-read-ephemeral-bug@gnu.org> (Stefan Monnier's message of "Fri, 20 Jul 2012 08:12:41 -0400")
Stefan Monnier <monnier@IRO.UMontreal.CA> writes:
Thanks for your answer.
>> (funcall (eval (eval '(let ((lex-var)) (lambda ())) t)))
>> does not work.
>
> Note that (eval (eval '(cons 1 2))) does not work either.
> So I don't consider it a bug.
That's true, of course. Lambdas are an exception in Emacs Lisp and
CL, though.
(info "(elisp)Lambda Expressions")
In Emacs Lisp, such a list is valid as an expression--it evaluates
to itself. But its main use is not to be evaluated as an
expression, but to be called as a function.
I stumbled upon this issue a few times already. So did others.
http://stackoverflow.com/questions/7913207/how-does-the-definition-for-apply-partially-work-in-emacs-24
IMO the info node I referenced above should mention this.
Christopher
next prev parent reply other threads:[~2012-07-20 13:38 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-06-25 18:47 bug#11782: 24.1; closure is not self-quoting Christopher Schmidt
2012-07-20 12:12 ` Stefan Monnier
2012-07-20 13:38 ` Christopher Schmidt [this message]
2013-02-23 14:53 ` Christopher Schmidt
2013-05-28 20:40 ` Stefan Monnier
2013-05-28 22:35 ` Christopher Schmidt
2013-05-29 0:25 ` Stefan Monnier
2013-05-29 7:05 ` Christopher Schmidt
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=878vee364e@ch.ristopher.com \
--to=christopher@ch.ristopher.com \
--cc=11782@debbugs.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).