From: Dan Jacobson <jidanni@jidanni.org>
Subject: Re: shell-script goofy indentation
Date: Wed, 01 Dec 2004 07:01:53 +0800 [thread overview]
Message-ID: <87fz2rj5zy.fsf@jidanni.org> (raw)
In-Reply-To: E1CZ22p-0003uH-1A@fencepost.gnu.org
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
The above makes more sense than the else case. However what really
"boils" me is when one hits TAB on the third line of
if e
then h
<----
the cursor is indeed now sitting right below the t of then,
but then enter the word else and hit TAB. It slides back to column 1.
Oh, I see, I have encountered different people's indenting styles and
not a bug. I see, I can do
(setq sh-indent-for-else sh-indent-for-then)
Looks good, but only on four-liners. OK, if I only write in the
multi-liner style, I won't feel as bad.
next prev parent reply other threads:[~2004-11-30 23:01 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 [this message]
[not found] ` <mailman.2640.1101880616.27204.bug-gnu-emacs@gnu.org>
2004-12-01 18:17 ` Jari Aalto
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87fz2rj5zy.fsf@jidanni.org \
--to=jidanni@jidanni.org \
/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.