[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: recognizing "end" correctly in Octave mode
From: |
Markus Triska |
Subject: |
Re: recognizing "end" correctly in Octave mode |
Date: |
Fri, 01 Dec 2006 18:32:24 +0100 |
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