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

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

bug#54499: 28.0.92; strange indentation in shell function


From: Andreas Röhler
Subject: bug#54499: 28.0.92; strange indentation in shell function
Date: Mon, 21 Mar 2022 19:24:48 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.5.0


Am 21.03.22 um 18:27 schrieb Lars Ingebrigtsen:
Andreas Röhler <andreas.roehler@easy-emacs.de> 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".)

Okay, seems ready to close, thanks.





reply via email to

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