From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Nicolas Neuss Newsgroups: gmane.emacs.help Subject: Re: recognizing "end" correctly in Octave mode Date: 01 Dec 2006 10:47:11 +0100 Organization: IPM Message-ID: <87irgwrlr4.fsf@ma-patru.mathematik.uni-karlsruhe.de> References: <873b82e9vv.fsf@ma-patru.mathematik.uni-karlsruhe.de> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1164969712 3393 80.91.229.2 (1 Dec 2006 10:41:52 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 1 Dec 2006 10:41:52 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Dec 01 11:41:49 2006 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1Gq5pn-0005TF-Sz for geh-help-gnu-emacs@m.gmane.org; Fri, 01 Dec 2006 11:41:36 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Gq5pn-0002Ls-EU for geh-help-gnu-emacs@m.gmane.org; Fri, 01 Dec 2006 05:41:35 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed00.sul.t-online.de!t-online.de!inka.de!rz.uni-karlsruhe.de!news.rz.uni-karlsruhe.de!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 27 Original-NNTP-Posting-Host: ma-patru.mathematik.uni-karlsruhe.de Original-X-Trace: news2.rz.uni-karlsruhe.de 1164966329 29825 172.22.2.67 (1 Dec 2006 09:45:29 GMT) Original-X-Complaints-To: usenet@rz.uni-karlsruhe.de Original-NNTP-Posting-Date: Fri, 1 Dec 2006 09:45:29 +0000 (UTC) User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.4 Original-Xref: shelby.stanford.edu gnu.emacs.help:143560 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:39162 Archived-At: Dieter Wilhelm 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