From: Markus Triska <triska@gmx.at>
Subject: Re: recognizing "end" correctly in Octave mode
Date: Fri, 01 Dec 2006 18:32:24 +0100 [thread overview]
Message-ID: <87psb3r07r.fsf@gmx.at> (raw)
In-Reply-To: 87irgwrlr4.fsf@ma-patru.mathematik.uni-karlsruhe.de
Nicolas Neuss <lastname@mathematik.uni-karlsruhe.de> writes:
> This is how Octave mode wants to indent:
>
> function A = LR3 (A0)
> A=A0;
> m=rows(A); n=columns(A);
> for i=1:min(m,n)
> A(i+1:m,i)=A(i+1:m,i)/A(i,i);
> A(i+1:m,i+1:n) = A(i+1:m,i+1:n)-A(i+1:m,i)*A(i,i+1:n);
> end
> end
indent-region on this gives:
function A = LR3 (A0)
A=A0;
m=rows(A); n=columns(A);
for i=1:min(m,n)
A(i+1:m,i)=A(i+1:m,i)/A(i,i);
A(i+1:m,i+1:n) = A(i+1:m,i+1:n)-A(i+1:m,i)*A(i,i+1:n);
end
end
in GNU Emacs 22.0.90.10.
All the best,
Markus Triska
next prev parent reply other threads:[~2006-12-01 17:32 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-11-29 12:05 recognizing "end" correctly in Octave mode Nicolas Neuss
2006-12-01 7:27 ` Dieter Wilhelm
[not found] ` <mailman.1389.1164958064.2155.help-gnu-emacs@gnu.org>
2006-12-01 9:47 ` Nicolas Neuss
2006-12-01 17:32 ` Markus Triska [this message]
2006-12-01 20:10 ` Dieter Wilhelm
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87psb3r07r.fsf@gmx.at \
--to=triska@gmx.at \
/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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).