From: Stefan Monnier <monnier@iro.umontreal.ca>
To: Angelo Graziosi <angelo.graziosi@alice.it>
Cc: 15613@debbugs.gnu.org
Subject: bug#15613: Wrong indentation in Shell-script[sh] mode?
Date: Tue, 15 Oct 2013 10:37:44 -0400 [thread overview]
Message-ID: <jwvr4bmmwl2.fsf-monnier+emacsbugs@gnu.org> (raw)
In-Reply-To: <525C59B0.7090804@alice.it>
> In the current trunk the indentation for bash scripts looks as in this test
> case:
> $ cat test_indent.sh
> #!/bin/bash
> if [ "${foo_a}" != "${foo_b}" ]; then
> if [ "${foo_c}" = "${foo_d}" ]; then
> echo
> echo "Hello..."
> echo
> exit 1
> fi
> fi
This works correctly if you use (setq sh-use-smie t) which I recommend.
It is currently not the default setting because it doesn't yet support
all the indentation-config variables of the old indentation code, and
doesn't support the "guess indentation settings" feature either. But in
most other respects it should work "as well or better".
Stefan
next prev parent reply other threads:[~2013-10-15 14:37 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-10-14 20:53 bug#15613: Wrong indentation in Shell-script[sh] mode? Angelo Graziosi
2013-10-15 14:37 ` Stefan Monnier [this message]
2013-10-15 14:56 ` Glenn Morris
2013-10-15 22:26 ` Angelo Graziosi
2013-10-15 22:23 ` Angelo Graziosi
2013-10-16 22:41 ` Glenn Morris
2013-10-17 1:03 ` Stefan Monnier
2013-10-17 2:03 ` Glenn Morris
2013-10-17 3:57 ` Stefan Monnier
2013-10-17 16:46 ` Angelo Graziosi
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=jwvr4bmmwl2.fsf-monnier+emacsbugs@gnu.org \
--to=monnier@iro.umontreal.ca \
--cc=15613@debbugs.gnu.org \
--cc=angelo.graziosi@alice.it \
/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 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.