From: Bob Proulx <bob@proulx.com>
To: help-gnu-emacs@gnu.org
Subject: Undesirable sh-mode indent
Date: Fri, 23 Oct 2015 15:38:51 -0600 [thread overview]
Message-ID: <20151023152057587807192@bob.proulx.com> (raw)
In 24.5.1 from Debian Sid I am now getting undesirable indention that
is no longer controlled by sh-basic-offset. In 23 this worked.
emacs -Q /tmp/trial.sh
M-: (setq sh-basic-offset 2)
if true; then
true
^ indent should be 2 not 4 here
C-c ?
Rules used: :elem basic -> 4, :before "then" -> 0, :after "then" -> nil
Anyone know what is happening here? I have reviewed the NEWS but I
didn't find any intentionally noted changes here.
Does anyone know how to keep syntax highlighting but to disable
indentation? Then at least I could at least stop it from doing the
wrong thing without dropping all of the way to fundamental-mode.
Thanks,
Bob
next reply other threads:[~2015-10-23 21:38 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-10-23 21:38 Bob Proulx [this message]
2015-10-24 5:50 ` Undesirable sh-mode indent Teemu Likonen
2015-10-24 19:18 ` Bob Proulx
2015-10-24 21:06 ` 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=20151023152057587807192@bob.proulx.com \
--to=bob@proulx.com \
--cc=help-gnu-emacs@gnu.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.
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).