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#14457: 24.3; buggy forward-sexp in octave mode? Date: Fri, 24 May 2013 00:07:38 -0400 Message-ID: References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1369368497 7332 80.91.229.3 (24 May 2013 04:08:17 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 24 May 2013 04:08:17 +0000 (UTC) Cc: 14457@debbugs.gnu.org To: Leo Liu Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri May 24 06:08:15 2013 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 1UfjId-0002Jr-9g for geb-bug-gnu-emacs@m.gmane.org; Fri, 24 May 2013 06:08:15 +0200 Original-Received: from localhost ([::1]:34867 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UfjIc-00041u-Bf for geb-bug-gnu-emacs@m.gmane.org; Fri, 24 May 2013 00:08:14 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:33382) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UfjIY-00040Y-FD for bug-gnu-emacs@gnu.org; Fri, 24 May 2013 00:08:12 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UfjIX-000542-Gx for bug-gnu-emacs@gnu.org; Fri, 24 May 2013 00:08:10 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:42704) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UfjIX-00053w-Di for bug-gnu-emacs@gnu.org; Fri, 24 May 2013 00:08:09 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1UfjJO-0004oq-DI for bug-gnu-emacs@gnu.org; Fri, 24 May 2013 00:09:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 24 May 2013 04:09:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 14457 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 14457-submit@debbugs.gnu.org id=B14457.136936851918478 (code B ref 14457); Fri, 24 May 2013 04:09:02 +0000 Original-Received: (at 14457) by debbugs.gnu.org; 24 May 2013 04:08:39 +0000 Original-Received: from localhost ([127.0.0.1]:59295 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UfjJ1-0004ny-IH for submit@debbugs.gnu.org; Fri, 24 May 2013 00:08:39 -0400 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.182]:34334) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UfjJ0-0004nj-IS for 14457@debbugs.gnu.org; Fri, 24 May 2013 00:08:38 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Av4EABK/CFFFpZoF/2dsb2JhbABEvw4Xc4IeAQEEAVYjBQsLDiYSFBgNJIgeBsEtkQoDpHqBXoMT X-IPAS-Result: Av4EABK/CFFFpZoF/2dsb2JhbABEvw4Xc4IeAQEEAVYjBQsLDiYSFBgNJIgeBsEtkQoDpHqBXoMT X-IronPort-AV: E=Sophos;i="4.84,565,1355115600"; d="scan'208";a="14293545" Original-Received: from 69-165-154-5.dsl.teksavvy.com (HELO pastel.home) ([69.165.154.5]) by ironport2-out.teksavvy.com with ESMTP/TLS/ADH-AES256-SHA; 24 May 2013 00:07:35 -0400 Original-Received: by pastel.home (Postfix, from userid 20848) id C588A678C4; Fri, 24 May 2013 00:07:38 -0400 (EDT) In-Reply-To: (Leo Liu's message of "Fri, 24 May 2013 11:07:02 +0800") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.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:74517 Archived-At: > 1. Open the attached file > 2. Move point to end of the word 'otherwise' > 3. M-: (forward-sexp -1) Please in your bug reports, do mention the behavior that you see rather than assume that I will see the same one. Also, try to explain the behavior you would have liked to see instead. What I see is that it jumps to "right after the previous matching case". Is that what you see? > Is this correct behaviour? It's the expected behavior, at least (IOW if it changes, you'll have to adjust the indentation rules accordingly). Since "after otherwise" is not a position that corresponds to the end of a "sexp", the meaning of (forward-sexp -1) is unclear. SMIE defines such things in a way I found useful, but admittedly, it might take some time to get used to it. What behavior did you expect? Stefan