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

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

Wrong indentation of statements after certain case labels in sh-mode.


From: Schöpflin, Markus
Subject: Wrong indentation of statements after certain case labels in sh-mode.
Date: Wed, 25 Jun 2003 16:29:09 +0200

In GNU Emacs 21.2.1 (i586-suse-linux, X toolkit, Xaw3d scroll bars)
 of 2003-03-28 on Cameron
configured using `configure '--with-gcc' '--with-pop' '--with-system-malloc' 
'--prefix=/usr' '--infodir=/usr/share/info' '--mandir=/usr/share/man' 
'--sharedstatedir=/var/lib' '--libexecdir=/usr/lib' '--with-x' '--with-xpm' 
'--with-jpeg' '--with-tiff' '--with-gif' '--with-png' '--with-x-toolkit=lucid' 
'--x-includes=/usr/X11R6/include' '--x-libraries=/usr/X11R6/lib' 
'i586-suse-linux' 'CC=gcc' 'CFLAGS=-O2 -march=i586 -mcpu=i686 
-fmessage-length=0 -pipe    -DSYSTEM_PURESIZE_EXTRA=25000   
-DSITELOAD_PURESIZE_EXTRA=10000         -D_GNU_SOURCE ' 'LDFLAGS=-s' 
'build_alias=i586-suse-linux' 'host_alias=i586-suse-linux' 
'target_alias=i586-suse-linux''
Important settings:
  value of $LC_ALL: nil
  value of $LC_COLLATE: POSIX
  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_US
  locale-coding-system: iso-latin-1
  default-enable-multibyte-characters: t

Please describe exactly what actions triggered the bug
and the precise symptoms of the bug:

Shell script case labels containing [] are disturbing the indentation of
statements following the case label. 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.

case xyz in
  
  foo)
    echo foo
    ;;
  
  [bar])
  echo bar
  ;;
  
  foobar)
    echo foobar
    ;;
  
  *)
    echo default
esac

Best regards,
Markus Schoepflin
-- 
-----------------------------------------------------------------------
Markus Schöpflin                    Phone: +49 721 9497-219
COMSOFT GmbH                        Fax:   +49 721 9497-129
Wachhausstrasse 5a                  http://www.comsoft.de
76227 Karlsruhe, Germany            mailto:markus.schoepflin@comsoft.de




reply via email to

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