From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.bugs Subject: bug#10460: 24.0.92; css-mode sexp movement Date: Tue, 30 Dec 2014 18:03:07 -0500 Message-ID: References: <87iogv9kmv.fsf@tromey.com> <877fxav2ft.fsf@tromey.com> <87387yuusm.fsf@tromey.com> <87oaqlt0di.fsf@tromey.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1419980663 9660 80.91.229.3 (30 Dec 2014 23:04:23 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 30 Dec 2014 23:04:23 +0000 (UTC) Cc: 10460@debbugs.gnu.org, Leo To: Tom Tromey Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Dec 31 00:04:12 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 1Y65pk-0003TE-En for geb-bug-gnu-emacs@m.gmane.org; Wed, 31 Dec 2014 00:04:12 +0100 Original-Received: from localhost ([::1]:38519 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y65pj-0002yq-Ky for geb-bug-gnu-emacs@m.gmane.org; Tue, 30 Dec 2014 18:04:11 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:52365) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y65pf-0002wr-LA for bug-gnu-emacs@gnu.org; Tue, 30 Dec 2014 18:04:08 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Y65pa-0002Kd-JM for bug-gnu-emacs@gnu.org; Tue, 30 Dec 2014 18:04:07 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:52087) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y65pa-0002KD-Gr for bug-gnu-emacs@gnu.org; Tue, 30 Dec 2014 18:04:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1Y65pa-0005MS-6m for bug-gnu-emacs@gnu.org; Tue, 30 Dec 2014 18:04:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 30 Dec 2014 23:04:02 +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.141998059020536 (code B ref 10460); Tue, 30 Dec 2014 23:04:02 +0000 Original-Received: (at 10460) by debbugs.gnu.org; 30 Dec 2014 23:03:10 +0000 Original-Received: from localhost ([127.0.0.1]:33220 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Y65oj-0005L9-Di for submit@debbugs.gnu.org; Tue, 30 Dec 2014 18:03:09 -0500 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.181]:40230) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Y65oh-0005L2-Vp for 10460@debbugs.gnu.org; Tue, 30 Dec 2014 18:03:08 -0500 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Aj4PAOwQflRFpY0B/2dsb2JhbABbgweDYIVawjuCYgQCAoEkFwEBAQEBAXyEAwEBBFYjEAs0EhQYDSSIU9ZZAQEBAQEBBAEBAQEekG8HhEgFiwGkLoF4hBkhgncBAQE X-IPAS-Result: Aj4PAOwQflRFpY0B/2dsb2JhbABbgweDYIVawjuCYgQCAoEkFwEBAQEBAXyEAwEBBFYjEAs0EhQYDSSIU9ZZAQEBAQEBBAEBAQEekG8HhEgFiwGkLoF4hBkhgncBAQE X-IronPort-AV: E=Sophos;i="5.07,502,1413259200"; d="scan'208";a="104258157" Original-Received: from 69-165-141-1.dsl.teksavvy.com (HELO pastel.home) ([69.165.141.1]) by ironport2-out.teksavvy.com with ESMTP/TLS/DHE-RSA-AES256-SHA; 30 Dec 2014 18:03:07 -0500 Original-Received: by pastel.home (Postfix, from userid 20848) id 1C3F3D96; Tue, 30 Dec 2014 18:03:07 -0500 (EST) In-Reply-To: <87oaqlt0di.fsf@tromey.com> (Tom Tromey's message of "Tue, 30 Dec 2014 12:15:37 -0700") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) 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:97887 Archived-At: Tom> Also conformity with other modes is a distinct plus Stefan> It's consistent with Lisp code (because the new behavior only occurs for Stefan> situations which don't exist in Lisp). > That's cheating! Any behavior would be compatible with what Lisp does > here, according to the same logic. I wouldn't call it cheating. The behavior of `forward-sexp' was really only defined for Lisp. Extending it to infix languages can be done in various ways. Before SMIE, it was done in the way that's simpler to implement, but it makes you lose the ability to jump over any nodes of the AST which aren't "atomic" nor wrapped in parentheses (in Lisp, this is no problem since all nodes of the AST are either "atomic" or wrapped in parentheses). In SMIE I decided to extend it in a different way, which takes more work on the implementation side, but offers more functionality. Of course "more functionality" inevitably means "different", so some users are bound to be annoyed. Stefan> You can still have that if you set forward-sexp-function to nil. > Yeah. I'm going to close this bug. Thanks, Stefan