GNU bug report logs - #54499
28.0.92; strange indentation in shell function

Previous Next

Package: emacs;

Reported by: Andreas Röhler <andreas.roehler <at> easy-emacs.de>

Date: Mon, 21 Mar 2022 14:30:02 UTC

Severity: minor

Tags: moreinfo, notabug

Found in version 28.0.92

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Andreas Röhler <andreas.roehler <at> easy-emacs.de>
To: Lars Ingebrigtsen <larsi <at> gnus.org>
Cc: 54499 <at> debbugs.gnu.org
Subject: bug#54499: 28.0.92; strange indentation in shell function
Date: Mon, 21 Mar 2022 19:24:48 +0100
Am 21.03.22 um 18:27 schrieb Lars Ingebrigtsen:
> Andreas Röhler <andreas.roehler <at> 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.




This bug report was last modified 3 years and 124 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.