unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#50320: 28.0.50; Recent changes cause functions in sh-script-mode to be indented incorrectly
@ 2021-09-01  4:15 Diego via Bug reports for GNU Emacs, the Swiss army knife of text editors
  2021-09-02  6:16 ` Kévin Le Gouguec
  0 siblings, 1 reply; 4+ messages in thread
From: Diego via Bug reports for GNU Emacs, the Swiss army knife of text editors @ 2021-09-01  4:15 UTC (permalink / raw)
  To: 50320

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





^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2021-09-02  7:54 UTC | newest]

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

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).