From: "Sprague, Webb (OFM)" <Webb.Sprague@ofm.wa.gov>
To: 6869@debbugs.gnu.org
Subject: bug#6869: Octave mode: incorrect "unbalanced block" warning
Date: Mon, 16 Aug 2010 16:35:49 -0700 [thread overview]
Message-ID: <AEABC21942B1974B82CB5B3605B8C452CED0B7@ofmmxalc712.ofm.wa.lcl> (raw)
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 = tcomp (fn)
%% res = tcomp (fn)
%% imports components and rearranges them.
if nargin ~= 1
print_usage()
endif
data = dlmread(fn, 3, 0);
x = data(:,2:end);
cnty = repmat(x(:,1)(:), 10, 1);
pop = x(:,1:10)(:);
bir = x(:,11:20)(:);
dth = x(:,21:30)(:);
imig = x(:,31:40)(:);
dmig = x(:,41:50)(:);
gq = x(:,51:60)(:);
yrs = repmat(2000:2009, 39, 1)(:);
res = [yrs, cnty, pop, bir, dth, imig, dmig, gq];
endfunction
next reply other threads:[~2010-08-16 23:35 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-08-16 23:35 Sprague, Webb (OFM) [this message]
2010-08-17 9:11 ` bug#6869: Octave mode: incorrect "unbalanced block" warning Stefan Monnier
2010-08-17 15:34 ` Sprague, Webb (OFM)
2010-08-17 15:44 ` Sprague, Webb (OFM)
2010-08-18 14:16 ` Stefan Monnier
2010-08-31 12:24 ` Stefan Monnier
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=AEABC21942B1974B82CB5B3605B8C452CED0B7@ofmmxalc712.ofm.wa.lcl \
--to=webb.sprague@ofm.wa.gov \
--cc=6869@debbugs.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.