unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Lars Ingebrigtsen <larsi@gnus.org>
To: "Andreas Röhler" <andreas.roehler@easy-emacs.de>
Cc: 54499@debbugs.gnu.org
Subject: bug#54499: 28.0.92; strange indentation in shell function
Date: Mon, 21 Mar 2022 18:27:40 +0100	[thread overview]
Message-ID: <87pmmfqkqb.fsf@gnus.org> (raw)
In-Reply-To: <5b38a938-261d-39ab-5ca3-c4a63b8c1e21@easy-emacs.de> ("Andreas Röhler"'s message of "Mon, 21 Mar 2022 18:16:50 +0100")

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".)

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





  reply	other threads:[~2022-03-21 17:27 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 [this message]
2022-03-21 18:24       ` Andreas Röhler
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=87pmmfqkqb.fsf@gnus.org \
    --to=larsi@gnus.org \
    --cc=54499@debbugs.gnu.org \
    --cc=andreas.roehler@easy-emacs.de \
    /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).