bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#22645: 24.5; indentation in shell-script-mode after &&


From: Lars Ingebrigtsen
Subject: bug#22645: 24.5; indentation in shell-script-mode after &&
Date: Thu, 12 May 2022 18:17:11 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux)

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





reply via email to

[Prev in Thread] Current Thread [Next in Thread]