From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Alexander Pohoyda Newsgroups: gmane.emacs.bugs Subject: Re: Wrong indentation of statements after certain case labels in sh-mode. Date: 25 Nov 2003 22:37:31 +0100 Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Message-ID: <87n0akqgdg.fsf@oak.pohoyda.family> References: NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: sea.gmane.org 1069796441 13177 80.91.224.253 (25 Nov 2003 21:40:41 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 25 Nov 2003 21:40:41 +0000 (UTC) Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Nov 25 22:40:38 2003 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1AOkvG-0000my-00 for ; Tue, 25 Nov 2003 22:40:38 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.24) id 1AOlrd-0005j9-KU for geb-bug-gnu-emacs@m.gmane.org; Tue, 25 Nov 2003 17:40:57 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24) id 1AOlqU-0005LZ-SG for bug-gnu-emacs@prep.ai.mit.edu; Tue, 25 Nov 2003 17:39:46 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24) id 1AOlpt-00059E-4n for bug-gnu-emacs@prep.ai.mit.edu; Tue, 25 Nov 2003 17:39:41 -0500 Original-Received: from [132.239.1.56] (helo=mailbox4.ucsd.edu) by monty-python.gnu.org with esmtp (Exim 4.24) id 1AOlps-00058X-9R for bug-gnu-emacs@prep.ai.mit.edu; Tue, 25 Nov 2003 17:39:08 -0500 Original-Received: from mail.fu-berlin.de (mail.fu-berlin.de [160.45.11.165]) by mailbox4.ucsd.edu (8.12.10/8.12.9) with ESMTP id hAPLbbdn051519 for ; Tue, 25 Nov 2003 13:37:38 -0800 (PST) Original-Received: by mail.fu-berlin.de (Smail3.2.0.98) from Curry.ZEDAT.FU-Berlin.DE (160.45.10.36) with esmtp id ; Tue, 25 Nov 2003 22:37:37 +0100 (MET) Original-Received: by Curry.ZEDAT.FU-Berlin.DE (Smail3.2.0.98) from news.fu-berlin.de with bsmtp id ; Tue, 25 Nov 2003 22:37:37 +0100 (MET) Original-To: gnu-emacs-bug@moderators.isc.org Original-Path: p5084255c.dip0.t-ipconnect.DE!not-for-mail Original-Newsgroups: gnu.emacs.bug Original-Lines: 40 X-Orig-NNTP-Posting-Host: p5084255c.dip0.t-ipconnect.de (80.132.37.92) X-Orig-X-Trace: news.uni-berlin.de 1069796257 63535861 80.132.37.92 ([146643]) User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50 X-Spamscanner: mailbox4.ucsd.edu (v1.4 Oct 30 2003 22:20:52, 0.0/5.0 2.60) X-MailScanner: PASSED (v1.2.8 41530 hAPLbbdn051519 mailbox4.ucsd.edu) X-MIME-Autoconverted: from 8bit to quoted-printable by mailbox4.ucsd.edu id hAPLbbdn051519 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.2 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: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.bugs:6189 X-Report-Spam: http://spam.gmane.org/gmane.emacs.bugs:6189 "Sch=C3=B6pflin, Markus" writes: > Shell script case labels containing [] are disturbing the > indentation of statements following the case label. I cannot reproduce it on the current Emacs. > If you take the following code > snippet and indent it in sh-mode, the second case label triggers the > bug. The indentation is ok for the rest of the case statement, > though. >=20 > case xyz in > =20 > foo) > echo foo > ;; > =20 > [bar]) > echo bar > ;; > =20 > foobar) > echo foobar > ;; > =20 > *) > echo default > esac Indentation does not work at all if I insert only this snippet. The sh-mode is obviously failing to find a name of the shell. If I add a "#!/bin/bash" in the first line, indentation works OK. --=20 Alexander Pohoyda PGP Key fingerprint: 7F C9 CC 5A 75 CD 89 72 15 54 5F 62 20 23 C6 44