From: "\"Schöpflin, Markus\"" <markus.schoepflin@comsoft.de>
Subject: Wrong indentation of statements after certain case labels in sh-mode.
Date: Wed, 25 Jun 2003 16:29:09 +0200 [thread overview]
Message-ID: <C48210CFAE2943478BB0ADA41A9FA273062ACC@cspop.cs-nt-domaene.de> (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
next reply other threads:[~2003-06-25 14:29 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-06-25 14:29 "Schöpflin, Markus" [this message]
[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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=C48210CFAE2943478BB0ADA41A9FA273062ACC@cspop.cs-nt-domaene.de \
--to=markus.schoepflin@comsoft.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).