From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Jan D." Newsgroups: gmane.emacs.devel Subject: Re: [michael@mail.endbracket.net: sh-indent-for-do wrong] Date: Mon, 9 May 2005 06:40:59 +0200 Message-ID: <1A1DB906-2435-4F8A-A829-BEF9CC785224@swipnet.se> References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 (Apple Message framework v728) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1115615013 18421 80.91.229.2 (9 May 2005 05:03:33 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 9 May 2005 05:03:33 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon May 09 07:03:30 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1DV0QO-0006h9-2Q for ged-emacs-devel@m.gmane.org; Mon, 09 May 2005 07:03:24 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DV0Ye-0000yI-4e for ged-emacs-devel@m.gmane.org; Mon, 09 May 2005 01:11:56 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1DV0Wn-0000Av-PO for emacs-devel@gnu.org; Mon, 09 May 2005 01:10:02 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1DV0Vd-0008EN-QV for emacs-devel@gnu.org; Mon, 09 May 2005 01:08:51 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DV0Vb-00082M-Ta for emacs-devel@gnu.org; Mon, 09 May 2005 01:08:48 -0400 Original-Received: from [195.54.107.79] (helo=mxfep04.bredband.com) by monty-python.gnu.org with esmtp (Exim 4.34) id 1DV0BG-0004Bd-E3; Mon, 09 May 2005 00:47:46 -0400 Original-Received: from gx01.bredband.com ([83.226.180.210] [83.226.180.210]) by mxfep04.bredband.com with ESMTP id <20050509044140.VRFP10131.mxfep04.bredband.com@gx01.bredband.com>; Mon, 9 May 2005 06:41:40 +0200 Original-Received: from coolsville.localdomain ([83.226.180.210]) by gx01.bredband.com with ESMTP id <20050509043901.TTYM15420.gx01.bredband.com@coolsville.localdomain>; Mon, 9 May 2005 06:39:01 +0200 In-Reply-To: Original-To: Richard Stallman X-Mailer: Apple Mail (2.728) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:36897 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:36897 9 maj 2005 kl. 00.45 skrev Richard Stallman: > What do other people think about this issue? Are there common shell > indent styles for which the current default is right? I agree with the sender, sh-indent-for-do should default to 0 rather than *. I haven't seen any sh-script that indents as sh-mode does by default. Jan D. > > ------- Start of forwarded message ------- > To: bug-gnu-emacs@gnu.org > Date: Sat, 7 May 2005 14:30:41 +1000 (EST) > From: michael@mail.endbracket.net (Michael Wardle) > Subject: sh-indent-for-do wrong > Reply-To: michael@endbracket.net > Sender: bug-gnu-emacs-bounces+rms=gnu.org@gnu.org > X-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on monty-python > X-Spam-Level: > X-Spam-Status: No, hits=0.0 required=5.0 tests=none autolearn=no > version=2.63 > > This bug report will be sent to the Free Software Foundation, > not to your local site managers! > Please write in English, because the Emacs maintainers do not have > translators to read other languages for them. > > Your bug report will be posted to the bug-gnu-emacs@gnu.org mailing > list, > and to the gnu.emacs.bug news group. > > In GNU Emacs 21.4.1 (i386-pc-linux-gnu) > of 2005-03-18 on trouble, modified by Debian > configured using `configure '--build=i386-linux' '--host=i386- > linux' '--prefix=/usr' '--sharedstatedir=/var/lib' '--libexecdir=/ > usr/lib' '--localstatedir=/var/lib' '--infodir=/usr/share/info' '-- > mandir=/usr/share/man' '--with-pop=yes' '--with-x=no' 'CFLAGS=- > DDEBIAN -g -O2' 'build_alias=i386-linux' 'host_alias=i386-linux'' > Important settings: > value of $LC_ALL: nil > value of $LC_COLLATE: nil > value of $LC_CTYPE: nil > value of $LC_MESSAGES: nil > value of $LC_MONETARY: nil > value of $LC_NUMERIC: nil > value of $LC_TIME: nil > value of $LANG: en_AU.utf8 > locale-coding-system: utf-8 > default-enable-multibyte-characters: t > > Please describe exactly what actions triggered the bug > and the precise symptoms of the bug: > > When entering a while..do..done block with the do on a separate line, > the do keyword is needlessly indented by half an indentation level > (+). > This looks ugly and contradicts the claim to support the indentation > style used by Rosenblatt (see Learning the Korn Shell 2 Ed., p. 168). > > sh-indent-for-do should default to 0 rather than *. > > Recent messages: > Setting up indent for shell type sh > Loading mule-util...done > setting up indent stuff > Indentation variable are now local. > Indentation setup for shell type sh > Mark set > Loading view...done > > keyboard-quit: Quit > Loading emacsbug...done > > > _______________________________________________ > Bug-gnu-emacs mailing list > Bug-gnu-emacs@gnu.org > http://lists.gnu.org/mailman/listinfo/bug-gnu-emacs > ------- End of forwarded message ------- > > > _______________________________________________ > Emacs-devel mailing list > Emacs-devel@gnu.org > http://lists.gnu.org/mailman/listinfo/emacs-devel >