all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Diego via "Bug reports for GNU Emacs, the Swiss army knife of text editors" <bug-gnu-emacs@gnu.org>
To: 50320@debbugs.gnu.org
Subject: bug#50320: 28.0.50; Recent changes cause functions in sh-script-mode to be indented incorrectly
Date: Wed, 01 Sep 2021 04:15:12 +0000	[thread overview]
Message-ID: <yacxZ_2iQyAeqFdkOel21CHeixrYHac9hZtDl9xXUT82vft_BTspGNBaymFgAWoJ6QT_Ja9va13jjQp1bXeBLsSyBZJkIj-4ij7OPaWxorY=@pm.me> (raw)

I'm not quite sure when this behavior was introduced, but I suspect commits 4bb70549 or 6392bc37a may be responsible:

With emacs built from git on commit 03dcceeee if I have a function, say:

myecho () {
    echo "foo"
}

And I call M-x indent-region on it, it gets indented to:

myecho () {
echo "foo"
}

Which I don't think is the correct indentation for functions in shell scripts.

Diego





             reply	other threads:[~2021-09-01  4:15 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-09-01  4:15 Diego via Bug reports for GNU Emacs, the Swiss army knife of text editors [this message]
2021-09-02  6:16 ` bug#50320: 28.0.50; Recent changes cause functions in sh-script-mode to be indented incorrectly Kévin Le Gouguec
2021-09-02  6:44   ` Lars Ingebrigtsen
2021-09-02  7:54     ` Kévin Le Gouguec

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='yacxZ_2iQyAeqFdkOel21CHeixrYHac9hZtDl9xXUT82vft_BTspGNBaymFgAWoJ6QT_Ja9va13jjQp1bXeBLsSyBZJkIj-4ij7OPaWxorY=@pm.me' \
    --to=bug-gnu-emacs@gnu.org \
    --cc=50320@debbugs.gnu.org \
    --cc=dieggsy@pm.me \
    /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.