all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Nicolas Neuss <lastname@mathematik.uni-karlsruhe.de>
Subject: Re: recognizing "end" correctly in Octave mode
Date: 01 Dec 2006 10:47:11 +0100	[thread overview]
Message-ID: <87irgwrlr4.fsf@ma-patru.mathematik.uni-karlsruhe.de> (raw)
In-Reply-To: mailman.1389.1164958064.2155.help-gnu-emacs@gnu.org

Dieter Wilhelm <dieter@duenenhof-wilhelm.de> writes:

> Yes, you could change the end keywords in the variable below:
> 
> (defvar octave-end-keywords
>   '("end" "endfor" "endfunction" "endif" "endswitch" "end_try_catch"
>     "end_unwind_protect" "endwhile"))
> 
> but according to this variable "end" is already a valid end-keyword.
> Are you sure it doesn't work properly for "if ... end"?  Then there
> might be a bug in the -calculate-indent function.

Hmm, for me "end" was not included in this list (Emacs 21.4.1, Debian).
Unfortunately, including it does still not help.

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

Thank you, Nicolas

  parent reply	other threads:[~2006-12-01  9:47 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 [this message]
2006-12-01 17:32     ` Markus Triska
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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87irgwrlr4.fsf@ma-patru.mathematik.uni-karlsruhe.de \
    --to=lastname@mathematik.uni-karlsruhe.de \
    /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.