From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Sprague, Webb (OFM)" Newsgroups: gmane.emacs.bugs Subject: bug#6869: Octave mode: incorrect "unbalanced block" warning Date: Mon, 16 Aug 2010 16:35:49 -0700 Message-ID: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1282003743 20331 80.91.229.12 (17 Aug 2010 00:09:03 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 17 Aug 2010 00:09:03 +0000 (UTC) To: 6869@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Aug 17 02:09:02 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 1Ol9jg-0003Dh-Iv for geb-bug-gnu-emacs@m.gmane.org; Tue, 17 Aug 2010 02:09:00 +0200 Original-Received: from localhost ([127.0.0.1]:34039 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ol9jf-00057w-Rk for geb-bug-gnu-emacs@m.gmane.org; Mon, 16 Aug 2010 20:08:59 -0400 Original-Received: from [140.186.70.92] (port=36841 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ol9jZ-00057E-7Z for bug-gnu-emacs@gnu.org; Mon, 16 Aug 2010 20:08:54 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1Ol9jY-0007Kk-3h for bug-gnu-emacs@gnu.org; Mon, 16 Aug 2010 20:08:53 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:45636) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Ol9jX-0007Kg-W9 for bug-gnu-emacs@gnu.org; Mon, 16 Aug 2010 20:08:52 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1Ol9bx-0007R5-Rx; Mon, 16 Aug 2010 20:01:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: "Sprague, Webb (OFM)" 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 00:01:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 6869 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: Original-Received: via spool by submit@debbugs.gnu.org id=B.128200325528575 (code B ref -1); Tue, 17 Aug 2010 00:01:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 17 Aug 2010 00:00:55 +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 1Ol9br-0007Qq-6s for submit@debbugs.gnu.org; Mon, 16 Aug 2010 20:00:55 -0400 Original-Received: from mx10.gnu.org ([199.232.76.166]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Ol9Y0-0007Od-RA for submit@debbugs.gnu.org; Mon, 16 Aug 2010 19:56:57 -0400 Original-Received: from lists.gnu.org ([199.232.76.165]:59920) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Ol9Yz-0006f8-Fc for submit@debbugs.gnu.org; Mon, 16 Aug 2010 19:57:57 -0400 Original-Received: from [140.186.70.92] (port=42823 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ol9Yx-0003x6-Tv for bug-gnu-emacs@gnu.org; Mon, 16 Aug 2010 19:57:56 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1Ol9Yw-0005qF-NY for bug-gnu-emacs@gnu.org; Mon, 16 Aug 2010 19:57:55 -0400 Original-Received: from ofmmxalc712.ofm.wa.gov ([198.238.39.33]:6597 helo=ofmmxalc712.ofm.wa.lcl) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Ol9Yw-0005px-FG for bug-gnu-emacs@gnu.org; Mon, 16 Aug 2010 19:57:54 -0400 X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Octave mode: incorrect "unbalanced block" warning Thread-Index: Acs9m8HsYCQX6XNWRAChwRGUdI7oyQ== X-detected-operating-system: by eggs.gnu.org: Windows XP SP1+, 2000 SP3 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-Mailman-Approved-At: Mon, 16 Aug 2010 20:00:53 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Mon, 16 Aug 2010 20:01:01 -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:39553 Archived-At: Hi there, 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. I also don't think it is because it is an endfunction -- I have gotten other "unbalanced block" warnings with for loops and such, they are just harder to duplicate for bug reports. Usually indentation works fine, but sometimes it goes wonky for some reason. (version) gives: "GNU Emacs 23.2.1 (i386-mingw-nt5.1.2600) of 2010-05-08 on G41R2F1" Thanks to the coders and maintainers for working on this! function res =3D tcomp (fn) %% res =3D tcomp (fn) %% imports components and rearranges them. =20 if nargin ~=3D 1 print_usage() endif data =3D dlmread(fn, 3, 0); x =3D data(:,2:end); cnty =3D repmat(x(:,1)(:), 10, 1); pop =3D x(:,1:10)(:); bir =3D x(:,11:20)(:); dth =3D x(:,21:30)(:); imig =3D x(:,31:40)(:); dmig =3D x(:,41:50)(:); gq =3D x(:,51:60)(:); =20 yrs =3D repmat(2000:2009, 39, 1)(:); res =3D [yrs, cnty, pop, bir, dth, imig, dmig, gq]; endfunction