From: Jari Aalto <jari.aalto@cante.net>
Subject: Re: shell-script goofy indentation
Date: Wed, 01 Dec 2004 20:17:20 +0200 [thread overview]
Message-ID: <1xe9x4r3.fsf@blue.sea.net> (raw)
In-Reply-To: mailman.2640.1101880616.27204.bug-gnu-emacs@gnu.org
Dan Jacobson <jidanni@jidanni.org> writes:
| rms> I tried it, and the indentation did not change. Is that a bug?
|
| Well shouldn't the then and the else be at the same indentation?
|
| Wait, more challenges, hit TAB on each line (which shouldn't change
| anything, as I have already hit TAB there)
| if a
| then b
| elif c
| then g
| fi
I think the sh-mode is programmed to expect constructs like this:
if a ; then
b
elif c ; then
g
fi
Or like this for longish "a" and "c" conditions:
if a
then
b
elif c
then
g
fi
Jari
next prev parent reply other threads:[~2004-12-01 18:17 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-11-28 4:31 shell-script goofy indentation Dan Jacobson
[not found] ` <E1CZ22p-0003uH-1A@fencepost.gnu.org>
2004-11-30 23:01 ` Dan Jacobson
[not found] ` <mailman.2640.1101880616.27204.bug-gnu-emacs@gnu.org>
2004-12-01 18:17 ` Jari Aalto [this message]
2004-12-01 19:13 ` Stefan Monnier
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=1xe9x4r3.fsf@blue.sea.net \
--to=jari.aalto@cante.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).