From: Dieter Wilhelm <dieter@duenenhof-wilhelm.de>
Cc: help-gnu-emacs@gnu.org
Subject: Re: recognizing "end" correctly in Octave mode
Date: Fri, 01 Dec 2006 08:27:24 +0100 [thread overview]
Message-ID: <87mz6813fn.fsf@hans.local.net> (raw)
In-Reply-To: <873b82e9vv.fsf@ma-patru.mathematik.uni-karlsruhe.de> (Nicolas Neuss's message of "29 Nov 2006 13\:05\:08 +0100")
Nicolas Neuss <lastname@mathematik.uni-karlsruhe.de> writes:
> Hello,
>
> Octave (which is similar to Matlab) allows both "end" and "end<op>" for
> teminating constructs, e.g. I can write both "if ... endif" and "if
> ... end". However, Octave mode does not recognize the "if ... end"
> construct correctly (i.e. indentation is wrong). Is it possible to change
> this behaviour?
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.
--
Best wishes
H. Dieter Wilhelm
Darmstadt, Germany
next prev parent reply other threads:[~2006-12-01 7:27 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 [this message]
[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
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=87mz6813fn.fsf@hans.local.net \
--to=dieter@duenenhof-wilhelm.de \
--cc=help-gnu-emacs@gnu.org \
/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).