From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: MON KEY Newsgroups: gmane.emacs.bugs 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 Message-ID: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1282428565 17900 80.91.229.12 (21 Aug 2010 22:09:25 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 21 Aug 2010 22:09:25 +0000 (UTC) To: 6893@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Aug 22 00:09:22 2010 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1OmwFZ-0003os-Vp for geb-bug-gnu-emacs@m.gmane.org; Sun, 22 Aug 2010 00:09:18 +0200 Original-Received: from localhost ([127.0.0.1]:52508 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OmwFZ-0005fv-Ay for geb-bug-gnu-emacs@m.gmane.org; Sat, 21 Aug 2010 18:09:17 -0400 Original-Received: from [140.186.70.92] (port=55552 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OmwFS-0005e1-Ea for bug-gnu-emacs@gnu.org; Sat, 21 Aug 2010 18:09:11 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OmwFR-0006cE-6Y for bug-gnu-emacs@gnu.org; Sat, 21 Aug 2010 18:09:10 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:60837) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OmwFR-0006cA-59 for bug-gnu-emacs@gnu.org; Sat, 21 Aug 2010 18:09:09 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1Omw0o-0002MR-Nl; Sat, 21 Aug 2010 17:54:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: MON KEY Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 21 Aug 2010 21:54:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 6893 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.12824276389067 (code B ref -1); Sat, 21 Aug 2010 21:54:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 21 Aug 2010 21:53:58 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Omw0j-0002MC-Nb for submit@debbugs.gnu.org; Sat, 21 Aug 2010 17:53:58 -0400 Original-Received: from mail.gnu.org ([199.232.76.166] helo=mx10.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Omw0h-0002M7-9h for submit@debbugs.gnu.org; Sat, 21 Aug 2010 17:53:55 -0400 Original-Received: from lists.gnu.org ([199.232.76.165]:49316) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Omw1s-0002md-Eo for submit@debbugs.gnu.org; Sat, 21 Aug 2010 17:55:08 -0400 Original-Received: from [140.186.70.92] (port=50548 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Omw1r-0002kw-1O for bug-gnu-emacs@gnu.org; Sat, 21 Aug 2010 17:55:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1Omw1p-0005BR-KP for bug-gnu-emacs@gnu.org; Sat, 21 Aug 2010 17:55:06 -0400 Original-Received: from mail-ww0-f49.google.com ([74.125.82.49]:33789) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Omw1p-0005B8-FN for bug-gnu-emacs@gnu.org; Sat, 21 Aug 2010 17:55:05 -0400 Original-Received: by wwb31 with SMTP id 31so1555309wwb.30 for ; Sat, 21 Aug 2010 14:55:03 -0700 (PDT) Original-Received: by 10.216.54.9 with SMTP id h9mr891378wec.34.1282427703404; Sat, 21 Aug 2010 14:55:03 -0700 (PDT) Original-Received: by 10.216.65.140 with HTTP; Sat, 21 Aug 2010 14:55:03 -0700 (PDT) X-Google-Sender-Auth: mv8FtplvBifzwegNjaVgrTmkMag X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Sat, 21 Aug 2010 17:54:02 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:39696 Archived-At: Interactive invocation of `eval-last-sexp' (e.g. "C-x C-e" ) in Emacs-lisp mode buffer for this form: `'#'(lambda (b) b)8 ;=3D> 8 `eval-last-sexp' for this makes (some) sense: `'#'(lambda (b) b) ;=3D> (quote (function (lambda (b) b))) And so, presumably the above is equivalent to: (eval '(list 'quote '(function (lambda (b) b)))) ;=3D> (quote (function (lambda (b) b))) But what is the equivalent form which would explain the results for following: `'#'(lambda (b) b)8 ;=3D> 8 Surely it isn't this: (funcall (eval (eval (eval '(list 'quote '(function (lambda (b) b)))))) 8) ;=3D> 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) ;=3D> Debugger entered--Lisp error: (wrong-number-of-arguments #[(structure) "\301=08!A\207" [structure backquote-process] 2 1720176] = 2) Reproducable on 23.2 with emacs -Q -- /s_P\