bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Fw: sh-script.el case indentation problem


From: Daniel Pfeiffer
Subject: Fw: sh-script.el case indentation problem
Date: Thu, 11 Sep 2003 20:56:32 +0200

Saluton, Moin,

sh-script-mode has evolved heavily since I wrote it.  Since I've shunned Shell 
for Perl, there's no point in me being maintainer any more.

Plusendata:

> Dato: Wed, 10 Sep 2003 14:53:46 +0100
> De: address@hidden (David James)
> Al: address@hidden
> Temo: sh-script.el case indentation problem

> Hi,
> 
> I'm using the sh-script.el v2.0f that comes with Gnu emacs v21.3 to try
> to indent lines automatically. I've hit a problem with case statements.
> Your name is in there as the maintainer, so I'm hoping you may be able
> to help.
> 
> The small script below shows the problem. The statements after the
> case labels line up with the labels themselves rather than being indented
> according to the setting of sh-indent-for-case-alt.
> 
> Hitting C-c ? with point on the e of 'echo' produces the message 'line has
> default indentation' so it appears that the line isn't recognised as a
> statment following a label.
> 
> I've tried running with sh-debug on but my knowledge of Emacs Lisp is
> approximately zero and the learning curve for syntax tables etc is steep.
> Can you help?
> 
> David James
> 
> #!/bin/sh
> 
> case $int in
>   abc*)
>   echo ok
>   ;;
>   def)
>   ;;
> esac


coralament / best Grötens / liebe Grüße / best regards / elkorajn salutojn
Daniel Pfeiffer

-- 
lerne / learn / apprends / läramå    Esperanto:
                              http://lernu.net/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]