From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4071 invoked from network); 23 Mar 2004 08:09:59 -0000 Received: from sunsite.dk (130.225.247.90) by ns1.primenet.com.au with SMTP; 23 Mar 2004 08:09:59 -0000 Received: (qmail 22522 invoked by alias); 23 Mar 2004 08:09:35 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 7237 Received: (qmail 22485 invoked from network); 23 Mar 2004 08:09:35 -0000 Received: from localhost (HELO sunsite.dk) (127.0.0.1) by localhost with SMTP; 23 Mar 2004 08:09:35 -0000 X-MessageWall-Score: 0 (sunsite.dk) Received: from [130.225.247.86] by sunsite.dk (MessageWall 1.0.8) with SMTP; 23 Mar 2004 8:9:35 -0000 Received: (qmail 26341 invoked from network); 23 Mar 2004 08:09:34 -0000 Received: from lakemtao06.cox.net (68.1.17.115) by a.mx.sunsite.dk with SMTP; 23 Mar 2004 08:09:24 -0000 Received: from quark.hightek.org ([68.12.75.33]) by lakemtao06.cox.net (InterMail vM.5.01.06.08 201-253-122-130-108-20031117) with ESMTP id <20040323080858.IYEZ18400.lakemtao06.cox.net@quark.hightek.org> for ; Tue, 23 Mar 2004 03:08:58 -0500 Received: by quark.hightek.org (Postfix, from userid 501) id 17139123FF; Tue, 23 Mar 2004 02:09:28 -0600 (CST) Date: Tue, 23 Mar 2004 02:09:27 -0600 From: Vincent Stemen To: zsh-users@sunsite.dk Subject: Re: syntax overview for zsh? Message-ID: <20040323080927.GA17403@quark.hightek.org> References: <20040322115830.GA12890@quark.hightek.org> <20040323052829.17803.qmail@web12408.mail.yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20040323052829.17803.qmail@web12408.mail.yahoo.com> User-Agent: Mutt/1.4.1i X-Spam-Checker-Version: SpamAssassin 2.63 on a.mx.sunsite.dk X-Spam-Level: * X-Spam-Status: No, hits=1.0 required=6.0 tests=RCVD_IN_SORBS autolearn=no version=2.63 X-Spam-Hits: 1.0 On Mon, Mar 22, 2004 at 09:28:29PM -0800, Bob Schmertz wrote: > > --- Vincent Stemen wrote: > > On Sun, Mar 21, 2004 at 09:53:58PM -0800, Bob Schmertz wrote: > > > > > > --- Thorsten Kampe wrote: > > > > >> If anyone else has a vim or X(Emacs) syntax highlighter I'd be > > > > >> grateful, too. > > > > > > > > > > I'm not a major-league zsh programmer, so I may well be ignorant, > > but > > > > > what's wrong with good-old shell-script mode in (X)Emacs? > > > > > > > > Nothing, if I could find the defining syntax file. Nothing like > > > > "sh.el" on my Gentoo box (where I have XEmacs). > > > > > > > > > > If you just want to use it as is, just type M-x shell-script-mode > > (tab > > > completion works here, too), and it'll put you in Emacs' proper mode. > > If > > > you want to tweak the syntax, the appropriate elisp file is the > > > non-obvious sh-script.el. If you want to know how to make it > > > automatically detect zsh-ness and it's not already doing so (works > > for me > > > with no special effort in GNU Emacs if the file starts with > > #!/bin/zsh), > > > email me offline and I'll tell you what to put in your .emacs. > > > > > > ===== > > > Cheers, > > > Bob Schmertz > > > > You might also want to try ksh-mode in Xemacs which has pretty nice > > syntax highlighting and it auto-indents nicely. Although I did > > customize my indention a bit in ~/.emacs. That is what I have used > > for shell programming for years. I do not like the default indention > > behavior of shell-script-mode. It indents everything even though it > > is not inside a function or control block and it does not seem to > > re-indent when you hit the key. It just indents further. > > > > This sounds like the behavior I observe when programming in (t)csh. > Things work fine for me, however, for Bourne-style shells in GNU Emacs (I > don't have an XEmacs handy for comparison), and ISTR that there was some > improvement on this front fairly recently, so you might give GNU Emacs v. > 21 a whirl before declaring it doesn't work. > > ===== > Cheers, > Bob Schmertz I am running xemacs-21.1.14 but that is a behavior I have noticed in shell-script-mode for years. I do not have regular emacs installed right now to test, but it was always my understanding that both emacs and Xemacs mostly use the same lisp libraries for the different modes. I will test again the next time I upgrade Xemacs. Vincent -- Vincent Stemen Avoid the VeriSign/Network Solutions domain registration trap! http://www.InetAddresses.net