GNU bug report logs - #17955
24.3.92; octave.el: indentation following ... or \

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs; Severity: minor; Reported by: Leo Liu <sdl.web@HIDDEN>; dated Sun, 6 Jul 2014 09:38:02 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.

Message received at 17955 <at> debbugs.gnu.org:


Received: (at 17955) by debbugs.gnu.org; 7 Jul 2014 01:49:50 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Jul 06 21:49:50 2014
Received: from localhost ([127.0.0.1]:45377 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.80)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1X3y3x-0005Hz-Oc
	for submit <at> debbugs.gnu.org; Sun, 06 Jul 2014 21:49:50 -0400
Received: from ironport2-out.teksavvy.com ([206.248.154.181]:48010)
 by debbugs.gnu.org with esmtp (Exim 4.80)
 (envelope-from <monnier@HIDDEN>) id 1X3y3v-0005Hi-Ju
 for 17955 <at> debbugs.gnu.org; Sun, 06 Jul 2014 21:49:48 -0400
X-IronPort-Anti-Spam-Filtered: true
X-IronPort-Anti-Spam-Result: ArYGAIDvNVNLd+D9/2dsb2JhbABZgwY7gw/APYEXF3SCJQEBAQECAVYjBQsLDiYSFBgNJIgECA3SDBeOegeEOASaAY8YgWqDTCE
X-IPAS-Result: ArYGAIDvNVNLd+D9/2dsb2JhbABZgwY7gw/APYEXF3SCJQEBAQECAVYjBQsLDiYSFBgNJIgECA3SDBeOegeEOASaAY8YgWqDTCE
X-IronPort-AV: E=Sophos;i="4.97,753,1389762000"; d="scan'208";a="76631810"
Received: from 75-119-224-253.dsl.teksavvy.com (HELO pastel.home)
 ([75.119.224.253])
 by ironport2-out.teksavvy.com with ESMTP/TLS/ADH-AES256-SHA;
 06 Jul 2014 21:49:41 -0400
Received: by pastel.home (Postfix, from userid 20848)
 id 9EB7D616FA; Sun,  6 Jul 2014 21:49:41 -0400 (EDT)
From: Stefan Monnier <monnier@HIDDEN>
To: Leo Liu <sdl.web@HIDDEN>
Subject: Re: bug#17955: 24.3.92; octave.el: indentation following ... or \
Message-ID: <jwvy4w6vu13.fsf-monnier+emacsbugs@HIDDEN>
References: <m3fvie96c9.fsf@HIDDEN>
Date: Sun, 06 Jul 2014 21:49:41 -0400
In-Reply-To: <m3fvie96c9.fsf@HIDDEN> (Leo Liu's message of "Sun, 06 Jul
 2014 17:36:38 +0800")
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4.50 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: 0.3 (/)
X-Debbugs-Envelope-To: 17955
Cc: 17955 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: 0.3 (/)

> As reported on 2013-07-03 in
> http://article.gmane.org/gmane.comp.gnu.octave.maintainers/33796

> In octave mode:

> a = \
> b

> b is aligned to a. Previously there was an offset per
> octave-continuation-offset.

> The octave smie lexer may or may not return the continuation token (...
> or \), any idea why it is made to behave like this?
> octave-continuation-offset is also unused. Comments?

Same as for sh-script's SMIE support, the new indentation code performs
indentation of continued lines as if the "backslash newline" was
a normal newline except it doesn't contain an implicit semi-colon.
So you should get indentation like:

   a = b + a * \
           c

So you should be able to control indentation of "b" above by tweaking
the (:after . "=") or (:before . "=") rule.

That indentation style is incompatible with octave-continuation-offset
(which basically assumes that continued lines are just a single line
wrapped).  But, just like we did in sh-script.el, we could/should
probably add an indentation rule to SMIE to make sure that continued
lines are indented at least as much as octave-continuation-offset.


        Stefan




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#17955; Package emacs. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 6 Jul 2014 09:37:12 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Jul 06 05:37:12 2014
Received: from localhost ([127.0.0.1]:44536 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.80)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1X3isi-0004rW-1F
	for submit <at> debbugs.gnu.org; Sun, 06 Jul 2014 05:37:12 -0400
Received: from eggs.gnu.org ([208.118.235.92]:43922)
 by debbugs.gnu.org with esmtp (Exim 4.80)
 (envelope-from <sdl.web@HIDDEN>) id 1X3isf-0004rG-Cm
 for submit <at> debbugs.gnu.org; Sun, 06 Jul 2014 05:37:10 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <sdl.web@HIDDEN>) id 1X3isU-0001EG-3c
 for submit <at> debbugs.gnu.org; Sun, 06 Jul 2014 05:37:04 -0400
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM,
 T_DKIM_INVALID autolearn=disabled version=3.3.2
Received: from lists.gnu.org ([2001:4830:134:3::11]:51804)
 by eggs.gnu.org with esmtp (Exim 4.71)
 (envelope-from <sdl.web@HIDDEN>) id 1X3isU-0001Dv-0X
 for submit <at> debbugs.gnu.org; Sun, 06 Jul 2014 05:36:58 -0400
Received: from eggs.gnu.org ([2001:4830:134:3::10]:45635)
 by lists.gnu.org with esmtp (Exim 4.71)
 (envelope-from <sdl.web@HIDDEN>) id 1X3isN-00065q-Rv
 for bug-gnu-emacs@HIDDEN; Sun, 06 Jul 2014 05:36:57 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <sdl.web@HIDDEN>) id 1X3isH-0000wT-Pc
 for bug-gnu-emacs@HIDDEN; Sun, 06 Jul 2014 05:36:51 -0400
Received: from mail-pa0-x229.google.com ([2607:f8b0:400e:c03::229]:52549)
 by eggs.gnu.org with esmtp (Exim 4.71)
 (envelope-from <sdl.web@HIDDEN>) id 1X3isH-0000wF-It
 for bug-gnu-emacs@HIDDEN; Sun, 06 Jul 2014 05:36:45 -0400
Received: by mail-pa0-f41.google.com with SMTP id fb1so3885566pad.14
 for <bug-gnu-emacs@HIDDEN>; Sun, 06 Jul 2014 02:36:43 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
 h=from:to:subject:date:message-id:mime-version:content-type;
 bh=C4Q5lTJcRc8WZuJerSbpVnak5oVm4d259Th7rYBCTzg=;
 b=rNpsRtMN3jeCdQqcTbcPnvmbYzfQK+dNNC1B2GaAv/gGjTuXsb4jxqVVWLfQyVUk9Q
 9A9htcGk3bEK7zFssw9g+2ANj0zi9HV0aKaiYoTeqaKXI9v2qaiOBz4S+63/0bWMKqfO
 xyKSqt8GvsMmLfCtXQPIFXQ7COK734iLJUl1g98MgksyYSz6e8JFsB8Rc0E0uNnVHi5T
 tJP0c2ZfPvIjWdb3q7NyAcSwQtrTPLN1+RPbKHWArMEjCS8rfNiwUzCN03cSjVPxU6Zl
 0nyU4pA8wfiMO83F9A58iop6iox5J+Snm4aj6TaYPUsC7DOWrZePsjaI0ZHLKaXUl3o1
 pQMQ==
X-Received: by 10.70.138.45 with SMTP id qn13mr20876170pdb.20.1404639403351;
 Sun, 06 Jul 2014 02:36:43 -0700 (PDT)
Received: from fortuna ([114.248.251.184])
 by mx.google.com with ESMTPSA id mj9sm151734306pab.20.2014.07.06.02.36.41
 for <bug-gnu-emacs@HIDDEN>
 (version=TLSv1.1 cipher=RC4-SHA bits=128/128);
 Sun, 06 Jul 2014 02:36:42 -0700 (PDT)
From: Leo Liu <sdl.web@HIDDEN>
To: bug-gnu-emacs@HIDDEN
Subject: 24.3.92; octave.el: indentation following ... or \
X-Debbugs-CC: Stefan Monnier <monnier@HIDDEN>
Date: Sun, 06 Jul 2014 17:36:38 +0800
Message-ID: <m3fvie96c9.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain
X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address
 (bad octet value).
X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address
 (bad octet value).
X-Received-From: 2001:4830:134:3::11
X-Spam-Score: -4.0 (----)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -4.0 (----)


As reported on 2013-07-03 in
http://article.gmane.org/gmane.comp.gnu.octave.maintainers/33796

In octave mode:

a = \
b

b is aligned to a. Previously there was an offset per
octave-continuation-offset.

The octave smie lexer may or may not return the continuation token (...
or \), any idea why it is made to behave like this?
octave-continuation-offset is also unused. Comments?

Leo




Acknowledgement sent to Leo Liu <sdl.web@HIDDEN>:
New bug report received and forwarded. Copy sent to monnier@HIDDEN, bug-gnu-emacs@HIDDEN. Full text available.
Report forwarded to monnier@HIDDEN, bug-gnu-emacs@HIDDEN:
bug#17955; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Fri, 31 Oct 2014 17:00:04 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.