all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#6869: Octave mode: incorrect "unbalanced block" warning
@ 2010-08-16 23:35 Sprague, Webb (OFM)
  2010-08-17  9:11 ` Stefan Monnier
  2010-08-31 12:24 ` Stefan Monnier
  0 siblings, 2 replies; 6+ messages in thread
From: Sprague, Webb (OFM) @ 2010-08-16 23:35 UTC (permalink / raw
  To: 6869

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





^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2010-08-31 12:24 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-08-16 23:35 bug#6869: Octave mode: incorrect "unbalanced block" warning Sprague, Webb (OFM)
2010-08-17  9:11 ` 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

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.