all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Stefan Monnier <monnier@iro.umontreal.ca>
To: "Sprague\, Webb \(OFM\)" <Webb.Sprague@ofm.wa.gov>
Cc: 6869@debbugs.gnu.org
Subject: bug#6869: Octave mode: incorrect "unbalanced block" warning
Date: Tue, 17 Aug 2010 11:11:38 +0200	[thread overview]
Message-ID: <jwv8w457giy.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <AEABC21942B1974B82CB5B3605B8C452CED0B7@ofmmxalc712.ofm.wa.lcl> (Webb Sprague's message of "Mon, 16 Aug 2010 16:35:49 -0700")

> 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





  reply	other threads:[~2010-08-17  9:11 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-08-16 23:35 bug#6869: Octave mode: incorrect "unbalanced block" warning Sprague, Webb (OFM)
2010-08-17  9:11 ` Stefan Monnier [this message]
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=jwv8w457giy.fsf-monnier+emacs@gnu.org \
    --to=monnier@iro.umontreal.ca \
    --cc=6869@debbugs.gnu.org \
    --cc=Webb.Sprague@ofm.wa.gov \
    /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.