From: Alexander Pohoyda <alexander.pohoyda@gmx.net>
Subject: Re: Wrong indentation of statements after certain case labels in sh-mode.
Date: 25 Nov 2003 22:37:31 +0100 [thread overview]
Message-ID: <87n0akqgdg.fsf@oak.pohoyda.family> (raw)
In-Reply-To: mailman.8616.1056551762.21513.bug-gnu-emacs@gnu.org
"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
next parent reply other threads:[~2003-11-25 21:37 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <mailman.8616.1056551762.21513.bug-gnu-emacs@gnu.org>
2003-11-25 21:37 ` Alexander Pohoyda [this message]
2003-06-25 14:29 Wrong indentation of statements after certain case labels in sh-mode "Schöpflin, Markus"
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=87n0akqgdg.fsf@oak.pohoyda.family \
--to=alexander.pohoyda@gmx.net \
/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).