From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6542 invoked from network); 11 Aug 2006 12:47:56 -0000 X-Spam-Checker-Version: SpamAssassin 3.1.4 (2006-07-25) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.5 required=5.0 tests=BAYES_00,FORGED_RCVD_HELO autolearn=ham version=3.1.4 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 11 Aug 2006 12:47:56 -0000 Received-SPF: none (ns1.primenet.com.au: domain at sunsite.dk does not designate permitted sender hosts) Received: (qmail 97704 invoked from network); 11 Aug 2006 12:47:48 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 11 Aug 2006 12:47:48 -0000 Received: (qmail 2695 invoked by alias); 11 Aug 2006 12:47:41 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 10587 Received: (qmail 2685 invoked from network); 11 Aug 2006 12:47:40 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 11 Aug 2006 12:47:40 -0000 Received: (qmail 96643 invoked from network); 11 Aug 2006 12:47:40 -0000 Received: from wx-out-0506.google.com (66.249.82.235) by a.mx.sunsite.dk with SMTP; 11 Aug 2006 12:47:39 -0000 Received: by wx-out-0506.google.com with SMTP id s7so724861wxc for ; Fri, 11 Aug 2006 05:47:37 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:sender:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth; b=W/bLISh19aIQr6ft7rFnZ18kLMwKEe5D6EUXuTQVf9ggN3OBjNigjpfZyy1xSi29q+ZnNN6T21cInvVrQMP2M9uun+OfsotPA7E5JiftEpY8RJpY/HzU2YAss97vkl9oziqLY8MhWNN304hIKEJWsWOnW1o5WdsbvkAet5+7V5Q= Received: by 10.78.158.11 with SMTP id g11mr2160347hue; Fri, 11 Aug 2006 05:47:37 -0700 (PDT) Received: by 10.78.178.17 with HTTP; Fri, 11 Aug 2006 05:47:37 -0700 (PDT) Message-ID: Date: Fri, 11 Aug 2006 14:47:37 +0200 From: "Nikolai Weibull" Sender: nikolai.weibull@gmail.com To: "Peter Stephenson" Subject: Re: What would you say is the most-used way of indenting case labels Cc: "Zsh Users' List" In-Reply-To: <200608111110.k7BBAuwM017362@news01.csr.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <200608111110.k7BBAuwM017362@news01.csr.com> X-Google-Sender-Auth: 3477bb37c1f5758d On 8/11/06, Peter Stephenson wrote: > "Nikolai Weibull" wrote: > > That is, is this style: > > > > case something in > > (*ome*) > > ... ;; > > esac > > > > more common than > > > > case something in > > (*ome*) > > ... ;; > > esac > > I use Emacs sh-script mode and I end up with things looking like this > > case foo in > (bar) > do_foo_bar > ;; > > (rod) > do_foo_rod > ;; > esac > > which is pretty much your second option, except there's no additional > indentation after the test and the separate ;; serves > as a visual end marker (like a "break" in C) Hm, actually, my examples were a bit flawed. It should have been: case something in (*ome*) ... ;; esac But it seems that that kind of indenting is oncommon. Argh, so many choices, so little to gain. > The only consensus seems to be the "(bar)" test is indented from the > "case". Actually, I found quite a few cases where "(bar)" wasn't indented from the "case", so that's why I asked.