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#6869: Octave mode: incorrect "unbalanced block" warning Date: Tue, 17 Aug 2010 11:11:38 +0200 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1282039097 29655 80.91.229.12 (17 Aug 2010 09:58:17 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 17 Aug 2010 09:58:17 +0000 (UTC) Cc: 6869@debbugs.gnu.org To: "Sprague\, Webb \(OFM\)" Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Aug 17 11:58:15 2010 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1OlIvs-0008FW-VC for geb-bug-gnu-emacs@m.gmane.org; Tue, 17 Aug 2010 11:58:13 +0200 Original-Received: from localhost ([127.0.0.1]:35917 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OlIde-0003jV-FF for geb-bug-gnu-emacs@m.gmane.org; Tue, 17 Aug 2010 05:39:22 -0400 Original-Received: from [140.186.70.92] (port=58682 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OlIdB-0003dn-Ok for bug-gnu-emacs@gnu.org; Tue, 17 Aug 2010 05:38:55 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OlIdA-0007r3-IS for bug-gnu-emacs@gnu.org; Tue, 17 Aug 2010 05:38:53 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:49417) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OlIdA-0007qy-Fu for bug-gnu-emacs@gnu.org; Tue, 17 Aug 2010 05:38:52 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1OlIDC-0002cC-32; Tue, 17 Aug 2010 05:12:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 17 Aug 2010 09:12:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 6869 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 6869-submit@debbugs.gnu.org id=B6869.128203626410039 (code B ref 6869); Tue, 17 Aug 2010 09:12:02 +0000 Original-Received: (at 6869) by debbugs.gnu.org; 17 Aug 2010 09:11:04 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OlICF-0002bs-Dp for submit@debbugs.gnu.org; Tue, 17 Aug 2010 05:11:03 -0400 Original-Received: from impaqm1.telefonica.net ([213.4.138.1]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OlICD-0002bW-Tg for 6869@debbugs.gnu.org; Tue, 17 Aug 2010 05:11:02 -0400 Original-Received: from IMPmailhost5.adm.correo ([10.20.102.126]) by IMPaqm1.telefonica.net with bizsmtp id vMAq1e00l2jdgqJ01MBg04; Tue, 17 Aug 2010 11:11:40 +0200 Original-Received: from ceviche.home ([88.7.8.175]) by IMPmailhost5.adm.correo with BIZ IMP id vMBe1e00b3mb5G81lMBf6F; Tue, 17 Aug 2010 11:11:39 +0200 X-Brightmail-Tracker: AAAAAA== X-TE-authinfo: authemail="monnier$movistar.es" |auth_email="monnier@movistar.es" X-TE-AcuTerraCos: auth_cuTerraCos="cosuitnetc01" Original-Received: by ceviche.home (Postfix, from userid 20848) id 89830660F0; Tue, 17 Aug 2010 11:11:38 +0200 (CEST) In-Reply-To: (Webb Sprague's message of "Mon, 16 Aug 2010 16:35:49 -0700") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Tue, 17 Aug 2010 05:12:02 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) 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: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:39565 Archived-At: > I am getting "unbalanced block" warnings when I hit tab on the > "endfunction" at the end of an m-file (function is cut-and-pasted > below). It is on windows, but I don't think that is the cause of *this* > bug. I have tested the function and it works fine, so I don't think it > is my octave code. It's a bug in octave's indentation code, indeed. It gets confused by the "end" in the following line: > x = data(:,2:end); I don't know Octave much, as it so happens but I've recently been playing with a new indentation code for Octave (using SMIE), so I'm interested in fixing it. Could you explain to me what is this "end" (and more generally what the "data(:,2:end)" means: all I can guess is that it's an array indexing of some sort). The Octave manual doesn't seem to talk about it. Stefan