From: Lars Ingebrigtsen <larsi@gnus.org>
To: Lasse Kliemann <lasse@lassekliemann.de>
Cc: 22645@debbugs.gnu.org
Subject: bug#22645: 24.5; indentation in shell-script-mode after &&
Date: Thu, 12 May 2022 18:17:11 +0200 [thread overview]
Message-ID: <874k1uybco.fsf@gnus.org> (raw)
In-Reply-To: <8760xuypyo.fsf@lassekliemann.de> (Lasse Kliemann's message of "Fri, 12 Feb 2016 15:15:43 +0100")
Lasse Kliemann <lasse@lassekliemann.de> writes:
> M-x shell-script-mode
>
> type:
> foo &&
> bar
>
> This will make the second line (bar) indented. While this may be desired
> sometimes, in some cases it is not. I use && for control flow throughout
> my whole program, which makes this indentation not useful.
>
> A fix was offered here, which I use now:
> http://superuser.com/a/1038557/494683
>
> Maybe this could be made a configurable option?
I've now added this to Emacs 29 under the name
`sh-indent-statement-after-and'. If anybody has a better name, feel
free to adjust.
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
prev parent reply other threads:[~2022-05-12 16:17 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-02-12 14:15 bug#22645: 24.5; indentation in shell-script-mode after && Lasse Kliemann
2022-05-12 16:17 ` Lars Ingebrigtsen [this message]
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=874k1uybco.fsf@gnus.org \
--to=larsi@gnus.org \
--cc=22645@debbugs.gnu.org \
--cc=lasse@lassekliemann.de \
/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.