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: Tue, 24 Aug 2010 16:49:30 -0400 Message-ID: References: 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 1282684182 2908 80.91.229.12 (24 Aug 2010 21:09:42 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 24 Aug 2010 21:09:42 +0000 (UTC) Cc: 6893@debbugs.gnu.org, Andreas Schwab To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Aug 24 23:09:39 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 1Oo0kU-0004vW-0n for geb-bug-gnu-emacs@m.gmane.org; Tue, 24 Aug 2010 23:09:38 +0200 Original-Received: from localhost ([127.0.0.1]:44873 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Oo0kT-0003ma-3w for geb-bug-gnu-emacs@m.gmane.org; Tue, 24 Aug 2010 17:09:37 -0400 Original-Received: from [140.186.70.92] (port=43705 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Oo0kJ-0003ku-3O for bug-gnu-emacs@gnu.org; Tue, 24 Aug 2010 17:09:28 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1Oo0kH-0001jy-UK for bug-gnu-emacs@gnu.org; Tue, 24 Aug 2010 17:09:26 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:39086) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Oo0kH-0001jr-QT for bug-gnu-emacs@gnu.org; Tue, 24 Aug 2010 17:09:25 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1Oo0QX-0008T9-Nh; Tue, 24 Aug 2010 16:49:01 -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: Tue, 24 Aug 2010 20:49:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 6893 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 6893-submit@debbugs.gnu.org id=B6893.128268289432544 (code B ref 6893); Tue, 24 Aug 2010 20:49:01 +0000 Original-Received: (at 6893) by debbugs.gnu.org; 24 Aug 2010 20:48:14 +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 1Oo0Pl-0008Sr-GN for submit@debbugs.gnu.org; Tue, 24 Aug 2010 16:48:13 -0400 Original-Received: from mail-ey0-f172.google.com ([209.85.215.172]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Oo0Pi-0008Sm-NX for 6893@debbugs.gnu.org; Tue, 24 Aug 2010 16:48:11 -0400 Original-Received: by eyd10 with SMTP id 10so3556830eyd.3 for <6893@debbugs.gnu.org>; Tue, 24 Aug 2010 13:49:31 -0700 (PDT) Original-Received: by 10.216.50.73 with SMTP id y51mr6464382web.85.1282682970942; Tue, 24 Aug 2010 13:49:30 -0700 (PDT) Original-Received: by 10.216.65.140 with HTTP; Tue, 24 Aug 2010 13:49:30 -0700 (PDT) In-Reply-To: X-Google-Sender-Auth: 3KfNqdFv56yLt_oZUwZXgvsRa3U X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Tue, 24 Aug 2010 16:49:01 -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:39734 Archived-At: On Sun, Aug 22, 2010 at 6:49 PM, Stefan Monnier wrote: >> So what about these? > >> `'#'8 >> =C2=A0;=3D> (quote (function 8)) > > What about it? =C2=A0C-M-b indeed shows that '#'8 is the sexp. > >> =C2=A0`#'?\x27?\x23 >> =C2=A0;=3D> (function 39) > My point is that with these C M-b: `'#' `' point is skipped back beyond the sexp at point to "M-b:". Isn't there an implicit list after the last quote created by backquote? It "feels" like there is with these: `#1=3D#1# ;=3D> (nil) `','#1=3D#1# ;=3D> (quote (nil)) `',#''#1=3D#1# ;=3D> (quote (quote (nil))) `',#','#1=3D#1# ;=3D> (quote \,) `,#','#1=3D#1# ;=3D> \, `',#','nil ;=3D> (quote \,) `',#',#1=3D#1# ;=3D> (quote \,) >> Where did 35 go? > > That's a known shortcoming of syntax tables which aren't able to > describe correctly the syntax of Elisp char constants. Does that affect how the range of "last sexp" is allowed to extend beyond t= he beginning-of-line only to find some arbitrary word barier a few lines up? > But again C-M-b > shows you correctly what C-x C-e considers as "the last sexp". Yes well, even w/ C M-b hopping its still not a valid sexp for `eval': `#'?\x27?\x23 =3D> (function 39) (eval (function 39)) ;=3D> 39 (eval `#'?\x27?\x23) ;=3D> Debugger entered--Lisp error: (wrong-number-of-arguments eval 2) And besides, theres this anomaly too: #&8"\377" ;=3D> "\377" (actually on Emacs 23.2 its =3D> "=C3=BF") `#&8"\377" ;=3D> "\377" (actually on Emacs 23.2 its =3D> "=C3=BF") `#&8"\x3fffff" ;=3D> "\377" (actually on Emacs 23.2 its =3D> "=C3=BF") Which would make sense except that _both_ of these manages to fail "correct= ly": `'#s `'#s" " !string =3D> Debugger entered--Lisp error: (invalid-read-syntax "#") Despite the fact that C M-b for either of this forms: `'#s(hash-table size 30 data (key1 val1 key2 300)) #s(hash-table size 30 data (key1 val1 key2 300)) puts point just after "#s". I understand that the hash-table read syntax has a higher priority because = its newer but the cummulative effect of the various sharpsign quoting/evaluatio= n rules for the immediate sexp before point feels inconsistently biased when viewed in the aggregate. > > > Stefan -- /s_P\