From: MON KEY <monkey@sandpframing.com>
To: 6893@debbugs.gnu.org
Subject: bug#6893: evaluating `'#'(lambda (b) b)8 ; => 8 with `eval-last-sexp' "C-x C-e" in `emacs-lisp-mode'
Date: Sat, 21 Aug 2010 17:55:03 -0400 [thread overview]
Message-ID: <AANLkTi=6V4DjoJ_EqD_HP27kVaDeZ2K_X38MOMsVJ2+P@mail.gmail.com> (raw)
Interactive invocation of `eval-last-sexp' (e.g. "C-x C-e" ) in
Emacs-lisp mode buffer for this form:
`'#'(lambda (b) b)8
;=> 8
`eval-last-sexp' for this makes (some) sense:
`'#'(lambda (b) b)
;=> (quote (function (lambda (b) b)))
And so, presumably the above is equivalent to:
(eval '(list 'quote '(function (lambda (b) b))))
;=> (quote (function (lambda (b) b)))
But what is the equivalent form which would explain the results for
following:
`'#'(lambda (b) b)8
;=> 8
Surely it isn't this:
(funcall (eval (eval (eval '(list 'quote '(function (lambda (b) b)))))) 8)
;=> 8
If it is, then why is eval'ing the same `'#'(lambda (b) b)8 form with
`eval-expression' (e.g. "M-:") met with the message:
"Trailing garbage following expression"
Likewise, giving `eval-expression' this form lands me in the debugger:
(`'#'(lambda (b) b) 8)
;=> Debugger entered--Lisp error:
(wrong-number-of-arguments #[(structure) "\301\b!A\207"
[structure backquote-process] 2 1720176] 2)
Reproducable on 23.2 with emacs -Q
--
/s_P\
next reply other threads:[~2010-08-21 21:55 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-08-21 21:55 MON KEY [this message]
2010-08-21 22:40 ` bug#6893: evaluating `'#'(lambda (b) b)8 ; => 8 with `eval-last-sexp' "C-x C-e" in `emacs-lisp-mode' Stefan Monnier
2010-08-22 0:17 ` MON KEY
2010-08-22 22:49 ` Stefan Monnier
2010-08-24 20:49 ` MON KEY
2010-08-21 22:50 ` Andreas Schwab
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='AANLkTi=6V4DjoJ_EqD_HP27kVaDeZ2K_X38MOMsVJ2+P@mail.gmail.com' \
--to=monkey@sandpframing.com \
--cc=6893@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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.