* Wrong indentation of statements after certain case labels in sh-mode.
@ 2003-06-25 14:29 "Schöpflin, Markus"
0 siblings, 0 replies; 2+ messages in thread
From: "Schöpflin, Markus" @ 2003-06-25 14:29 UTC (permalink / raw)
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
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Wrong indentation of statements after certain case labels in sh-mode.
[not found] <mailman.8616.1056551762.21513.bug-gnu-emacs@gnu.org>
@ 2003-11-25 21:37 ` Alexander Pohoyda
0 siblings, 0 replies; 2+ messages in thread
From: Alexander Pohoyda @ 2003-11-25 21:37 UTC (permalink / raw)
"Schöpflin, Markus" <markus.schoepflin@comsoft.de> writes:
> Shell script case labels containing [] are disturbing the
> indentation of statements following the case label.
I cannot reproduce it on the current Emacs.
> 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
Indentation does not work at all if I insert only this snippet. The
sh-mode is obviously failing to find a name of the shell.
If I add a "#!/bin/bash" in the first line, indentation works OK.
--
Alexander Pohoyda <alexander.pohoyda@gmx.net>
PGP Key fingerprint: 7F C9 CC 5A 75 CD 89 72 15 54 5F 62 20 23 C6 44
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2003-11-25 21:37 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <mailman.8616.1056551762.21513.bug-gnu-emacs@gnu.org>
2003-11-25 21:37 ` Wrong indentation of statements after certain case labels in sh-mode Alexander Pohoyda
2003-06-25 14:29 "Schöpflin, Markus"
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.