Subject: Re: bug#54499: 28.0.92; strange indentation in shell function

From: Lars Ingebrigtsen <[email-masked]>
Date: Mon, 21 Mar 2022 18:27:40 +0100

Andreas Röhler <[email-masked]> writes:

> I'd prefer no indentation at all here.
>
> foo1() { date; time -p emacs -Q -L . --batch \
> --eval "(message (emacs-version))"
> }

I don't think that's a common preference, to put it mildly.

> Beside: Why indent after "time"? Why not line up with "date"?
>
> foo1() { date; time -p emacs -Q -L . --batch \
>          --eval "(message (emacs-version))"

Because date is the previous command.  It lines up all the options after
the command they belong to.  (Although it's debatable that the mode
should know that "time" is one of those special commands that execute
other commands, so --eval should arguably line up after "emacs".)

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no