From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: GAIL Newsgroups: gmane.emacs.bugs Subject: octave-mod.el: wrong indentation for "IF", "FOR", etc. Date: Mon, 08 Oct 2007 13:17:49 +0200 Message-ID: <470A11DD.6050207@tnp-online.de> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1191842303 28480 80.91.229.12 (8 Oct 2007 11:18:23 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 8 Oct 2007 11:18:23 +0000 (UTC) To: bug-gnu-emacs@gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Oct 08 13:18:22 2007 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1Ieqct-0002vL-VR for geb-bug-gnu-emacs@m.gmane.org; Mon, 08 Oct 2007 13:18:20 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ieqco-0001uY-PJ for geb-bug-gnu-emacs@m.gmane.org; Mon, 08 Oct 2007 07:18:14 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Ieqcm-0001uR-7d for bug-gnu-emacs@gnu.org; Mon, 08 Oct 2007 07:18:12 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Ieqcl-0001u5-Lh for bug-gnu-emacs@gnu.org; Mon, 08 Oct 2007 07:18:11 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ieqcl-0001u2-IP for bug-gnu-emacs@gnu.org; Mon, 08 Oct 2007 07:18:11 -0400 Original-Received: from mxoutlb04.versatel.de ([89.246.255.234]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Ieqck-00031Z-SF for bug-gnu-emacs@gnu.org; Mon, 08 Oct 2007 07:18:11 -0400 Original-Received: from mx05.versatel.de (mx01.versatel.de [212.7.146.1]) by mxoutlb04.versatel.de (8.13.1/8.13.1) with ESMTP id l98BI8p2002216 for ; Mon, 8 Oct 2007 13:18:08 +0200 Original-Received: from [192.168.1.4] (i59F77C98.versanet.de [89.247.124.152]) by mx05.versatel.de (8.12.11.20060308/8.12.11) with ESMTP id l98BI0Xa016196 for ; Mon, 8 Oct 2007 13:18:04 +0200 User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.0.7) Gecko/20060918 Thunderbird/1.5.0.7 Mnenhy/0.7.4.666 X-Detected-Kernel: Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:16705 Archived-At: In octave-mode, depending on toggle-case-fold-search, octave-indent-line produces either this IF = 1 ; x = 2 ; or that: IF = 1 ; x = 2 ; (via the function re-search-backward). The second behavior is obviously nonsense. Similar for "FOR" etc. I verified the behavior for emacs-20.7.1/octave-2.1.34 and emacs 22.1.1/octave 2.9.14. G.