From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Leo Liu Newsgroups: gmane.emacs.bugs Subject: bug#14457: 24.3; buggy forward-sexp in octave mode? Date: Sat, 08 Jun 2013 11:36:47 +0800 Message-ID: References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1370662692 21603 80.91.229.3 (8 Jun 2013 03:38:12 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 8 Jun 2013 03:38:12 +0000 (UTC) Cc: 14457-done@debbugs.gnu.org To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Jun 08 05:38:08 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 1Ul9yh-0001q7-K5 for geb-bug-gnu-emacs@m.gmane.org; Sat, 08 Jun 2013 05:38:07 +0200 Original-Received: from localhost ([::1]:56278 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ul9yg-00019h-W4 for geb-bug-gnu-emacs@m.gmane.org; Fri, 07 Jun 2013 23:38:07 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:56933) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ul9yc-00019Z-Ne for bug-gnu-emacs@gnu.org; Fri, 07 Jun 2013 23:38:03 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Ul9yZ-0008Cf-0C for bug-gnu-emacs@gnu.org; Fri, 07 Jun 2013 23:38:02 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:40733) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ul9yY-0008CS-S5 for bug-gnu-emacs@gnu.org; Fri, 07 Jun 2013 23:37:58 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1Ul9yc-00051u-Ch for bug-gnu-emacs@gnu.org; Fri, 07 Jun 2013 23:38:02 -0400 Resent-From: Leo Liu Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: bug-gnu-emacs@gnu.org Resent-Date: Sat, 08 Jun 2013 03:38:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 14457 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Mail-Followup-To: 14457@debbugs.gnu.org, sdl.web@gmail.com, sdl.web@gmail.com Original-Received: via spool by 14457-done@debbugs.gnu.org id=D14457.137066262519143 (code D ref 14457); Sat, 08 Jun 2013 03:38:02 +0000 Original-Received: (at 14457-done) by debbugs.gnu.org; 8 Jun 2013 03:37:05 +0000 Original-Received: from localhost ([127.0.0.1]:57323 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1Ul9xg-0004yZ-RO for submit@debbugs.gnu.org; Fri, 07 Jun 2013 23:37:05 -0400 Original-Received: from mail-pd0-f177.google.com ([209.85.192.177]:34145) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1Ul9xf-0004xa-2n for 14457-done@debbugs.gnu.org; Fri, 07 Jun 2013 23:37:03 -0400 Original-Received: by mail-pd0-f177.google.com with SMTP id p10so28877pdj.22 for <14457-done@debbugs.gnu.org>; Fri, 07 Jun 2013 20:36:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:references:face:date:in-reply-to:message-id :user-agent:mime-version:content-type; bh=p52HQYJgEEPcqysTdxK7b4xgJwsbKbh8+BCVkjr65wc=; b=FuhjhBqXqCTJbnDv2ivpYn54L763qIAs55Bjm2yrfacIv7/akFZlxqQjpXj6rmlfZE yPgKtXmq2m32p7XAGRmPLfVSv+2y5dMyk1FRUMiGiC9a8/0Dozrg4hxOw6T+TJn+ICdj jMvSSfRS33EZF+iac8jLAhcvho4EsvVWNbOR9NU3xVdJU2Ld21HKdo5R/Gx5V7EO4HBu YipSfwVr2ZAxyKAiRK6SNc6M+XWfoZktz440q8KN6sfe1giKFKiG0yp/2IDJiouK2DFV whn5bOy6liJ41j9BU2PZkVwhsZM8EQAnxwdsbxGTSosOs3GBcynmref0IMPPTuwlvqlA OsXQ== X-Received: by 10.68.89.226 with SMTP id br2mr1458110pbb.101.1370662613176; Fri, 07 Jun 2013 20:36:53 -0700 (PDT) Original-Received: from localhost ([119.161.133.157]) by mx.google.com with ESMTPSA id l4sm1446170pbo.6.2013.06.07.20.36.51 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Fri, 07 Jun 2013 20:36:52 -0700 (PDT) Face: iVBORw0KGgoAAAANSUhEUgAAACgAAAAoBAMAAAB+0KVeAAAAG1BMVEUAAAA9Cgm3Hx1WWFWA gn+WmJWsrqv4+vcCAwCRl2MkAAAAAXRSTlMAQObYZgAAAAFiS0dEAIgFHUgAAAAJcEhZcwAAAYoA AAGKATOXMFgAAAAHdElNRQfXAQwDNR+ZJmElAAABIklEQVQoz22SPW+DQAyGWUq65qasd9PNUSX4 AZHK2C1rJy5jpDS4IwRVup9dn7GNafpKIPPgzztXFSujqq1eM2n8h22oMkvxI/i9C97kRfMRUN55 dS3BrsAwBXUtMLAO4lryh8kTjOxKpQNniNxAgZOEe4bZwsDTFhKdqZRLNII4OQNHhEuq/RMkm6Cj TnnEA/fk0BorcYn5qA3oaeAxbaBOLrX+9G48NZ2Fzc2tzDM8Q+tMypEOqYHh8mAWaaK3U/cDMOT5 aMZMABgPXc7zPMs1A8DXO756GFJ/4fMEq47hTsAdn5avoxZ4ywl0c2w4Flu2Ybeyb3S+EqxX2DYA H8veJGEDTnHnrXvRaPyt+2kSfK6rfBZ2tUtfP/mR+pR6sX8BUZ/cDV7tvkoAAAAASUVORK5CYII= In-Reply-To: (Stefan Monnier's message of "Sat, 25 May 2013 02:59:08 -0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (OS X 10.8.3) 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:74885 Archived-At: On 2013-05-25 14:59 +0800, Stefan Monnier wrote: > Both behaviors make sense. Note that elseif/else behaves just like > case/otherwise: if will stop at the previous matching elseif. > > For indentation purpose it's better if it doesn't jump > too far, which is why octave-mode currently behaves this way. > The reason why it's better is: > - faster indentation since we parse less of the buffer. > - more local decision means that the behavior is easier to understand > for the user. > - also means that it better takes into account choices of the user: if > the user decides to place his "case" at some other indentation, only > the first "case" after "switch" will disagree with the user, all the > other ones will simply align under the first. > > Ideally, this behavior would also allow to use C-M-t to transpose two > cases, just like you can do with the usual infix operators/separators, > but currently this doesn't work (and it can't be done with "otherwise"). I have noticed with your last change to smie, 'case' 'elseif' are now nicely highlighted. So I agree with your points and consider this done ;) Leo