unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: "Andreas Röhler" <andreas.roehler@easy-emacs.de>
To: Lars Ingebrigtsen <larsi@gnus.org>
Cc: 54499@debbugs.gnu.org
Subject: bug#54499: 28.0.92; strange indentation in shell function
Date: Mon, 21 Mar 2022 19:24:48 +0100	[thread overview]
Message-ID: <7de6f845-f82e-7e4e-da54-88bfa8da019a@easy-emacs.de> (raw)
In-Reply-To: <87pmmfqkqb.fsf@gnus.org>


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	other threads:[~2022-03-21 18:24 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-03-21 14:29 bug#54499: 28.0.92; strange indentation in shell function Andreas Röhler
2022-03-21 17:09 ` Lars Ingebrigtsen
2022-03-21 17:16   ` Andreas Röhler
2022-03-21 17:27     ` Lars Ingebrigtsen
2022-03-21 18:24       ` Andreas Röhler [this message]
2022-03-21 18:32         ` Lars Ingebrigtsen

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

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=7de6f845-f82e-7e4e-da54-88bfa8da019a@easy-emacs.de \
    --to=andreas.roehler@easy-emacs.de \
    --cc=54499@debbugs.gnu.org \
    --cc=larsi@gnus.org \
    /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 public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).