From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Tom Tromey Newsgroups: gmane.emacs.bugs Subject: bug#10460: 24.0.92; css-mode sexp movement Date: Mon, 29 Dec 2014 09:35:50 -0700 Message-ID: <877fxav2ft.fsf@tromey.com> References: <87iogv9kmv.fsf@tromey.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1419871042 16804 80.91.229.3 (29 Dec 2014 16:37:22 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 29 Dec 2014 16:37:22 +0000 (UTC) Cc: Tom Tromey , 10460@debbugs.gnu.org, Leo To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Dec 29 17:37:15 2014 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Y5dJe-0003qY-NT for geb-bug-gnu-emacs@m.gmane.org; Mon, 29 Dec 2014 17:37:10 +0100 Original-Received: from localhost ([::1]:33972 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y5dJe-0007ua-2N for geb-bug-gnu-emacs@m.gmane.org; Mon, 29 Dec 2014 11:37:10 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:60896) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y5dJZ-0007tj-NR for bug-gnu-emacs@gnu.org; Mon, 29 Dec 2014 11:37:06 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Y5dJW-0000FI-H1 for bug-gnu-emacs@gnu.org; Mon, 29 Dec 2014 11:37:05 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:51071) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y5dJW-0000FD-82 for bug-gnu-emacs@gnu.org; Mon, 29 Dec 2014 11:37:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1Y5dJV-0002ha-Re for bug-gnu-emacs@gnu.org; Mon, 29 Dec 2014 11:37:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Tom Tromey Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 29 Dec 2014 16:37:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 10460 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 10460-submit@debbugs.gnu.org id=B10460.141987097410327 (code B ref 10460); Mon, 29 Dec 2014 16:37:01 +0000 Original-Received: (at 10460) by debbugs.gnu.org; 29 Dec 2014 16:36:14 +0000 Original-Received: from localhost ([127.0.0.1]:60437 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Y5dIk-0002gV-3F for submit@debbugs.gnu.org; Mon, 29 Dec 2014 11:36:14 -0500 Original-Received: from gproxy2-pub.mail.unifiedlayer.com ([69.89.18.3]:37885) by debbugs.gnu.org with smtp (Exim 4.80) (envelope-from ) id 1Y5dIh-0002gL-V9 for 10460@debbugs.gnu.org; Mon, 29 Dec 2014 11:36:13 -0500 Original-Received: (qmail 19535 invoked by uid 0); 29 Dec 2014 16:36:08 -0000 Original-Received: from unknown (HELO cmgw3) (10.0.90.84) by gproxy2.mail.unifiedlayer.com with SMTP; 29 Dec 2014 16:36:08 -0000 Original-Received: from box522.bluehost.com ([74.220.219.122]) by cmgw3 with id ZUby1p00W2f2jeq01Uc1TY; Mon, 29 Dec 2014 09:36:08 -0700 X-Authority-Analysis: v=2.1 cv=Lo0BlBtc c=1 sm=1 tr=0 a=GsOEXm/OWkKvwdLVJsfwcA==:117 a=GsOEXm/OWkKvwdLVJsfwcA==:17 a=cNaOj0WVAAAA:8 a=f5113yIGAAAA:8 a=udL4O0NGDEAA:10 a=IkcTkHD0fZMA:10 a=zstS-IiYAAAA:8 a=PnD2wP_eR3oA:10 a=-Ceb2LbMfV4A:10 a=A92cGCtB03wA:10 a=xpQm7LBaG05omK7dXKMA:9 a=QEXdDO2ut3YA:10 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=tromey.com; s=default; h=Content-Transfer-Encoding:Content-Type:MIME-Version:Message-ID:In-Reply-To:Date:References:Subject:Cc:To:From; bh=CHsvlhzjyHlarcaBIPjvSyQQ1yQ/uyvxgVENVkkNlfc=; b=IuWrO7m1xQ//zr2Ra9haBnLNcxtAJ6bdILeLa7zRDgCiN62sjHkHWn4+0dK6i+D1WHt0W33dtdVRY6TH0oGQrJUs7CZE1GbHltMoH+hpQzLjrbC0UiezhgOqx+kyFGwf; Original-Received: from [71.33.142.103] (port=40928 helo=pokyo) by box522.bluehost.com with esmtpsa (TLSv1.2:AES128-GCM-SHA256:128) (Exim 4.82) (envelope-from ) id 1Y5dIU-00070f-0I; Mon, 29 Dec 2014 09:35:58 -0700 X-Attribution: Tom In-Reply-To: (Stefan Monnier's message of "Mon, 29 Dec 2014 09:50:58 -0500") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) X-Identified-User: {36111:box522.bluehost.com:elynrobi:tromey.com} {sentby:smtp auth 71.33.142.103 authed with tom+tromey.com} X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 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: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:97803 Archived-At: >> When I do this, point moves to the "a". Stefan> It skipped a "statement". >> This seems clearly wrong to me >> -- I think point should be left at the "{". Stefan> Why? I was going just by how I "know" emacs works, based on using various other modes for years and years. That is, consistency with C mode, js mode, tcl mode, etc. The docs also indicate that this is how Emacs works. >From "(emacs) Expressions": Each programming language mode has its own definition of a "balanced expression". Balanced expressions typically include individual symbols, numbers, and string constants, as well as pieces of code enclosed in a matching pair of delimiters. [...] To move forward over a balanced expression, use =E2=80=98C-M-f=E2=80= =99 (=E2=80=98forward-sexp=E2=80=99). If the first significant character a= fter point is an opening delimiter (e.g., =E2=80=98(=E2=80=99, =E2=80=98[=E2=80=99 or = =E2=80=98{=E2=80=99 in C), this command moves past the matching closing delimiter. If the character begins a symbol, string, or number, the command moves over that. [...] The command =E2=80=98C-M-b=E2=80=99 (=E2=80=98backward-sexp=E2=80=99= ) moves backward over a balanced expression=E2=80=94like =E2=80=98C-M-f=E2=80=99, but in the reverse dir= ection. If the expression is preceded by any prefix characters (single-quote, backquote and comma, in Lisp), the command moves back over them as well. I suppose this supplies a bit of wiggle room, if you leniently interpret "prefix characters". That said it just seems weird to me that, when point is on "{", if forward-sexp followed by backward-sexp moves to a different spot, especially given the above documentation. Tom