unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Stefan Kangas <stefan@marxist.se>
To: Lars Ingebrigtsen <larsi@gnus.org>
Cc: tcr@freebits.de, 2160@debbugs.gnu.org
Subject: bug#2160: 23.0.60; Indentation of LOOP (cl-indent.el)
Date: Sat, 21 Mar 2020 02:39:12 +0100	[thread overview]
Message-ID: <87o8sq4hbz.fsf@stefankangas.se> (raw)
In-Reply-To: <8736ab15ww.fsf@gnus.org> (Lars Ingebrigtsen's message of "Sat, 14 Mar 2020 13:23:43 +0100")

Lars Ingebrigtsen <larsi@gnus.org> writes:

>> People have had ample time to protest, so perhaps we should just go
>> ahead and make the change on the master branch.
>
> Yup.  

I just realized that the suggestion as is makes code like this indent
weirdly:

    (loop
          for item in list
          for i from 1 to 10
          do (something))

The better indenting in my taste would be what we have now:

    (loop
       for item in list
       for i from 1 to 10
       do (something))

This is from an example I found online.  Not sure how common this is
in practice.

Best regards,
Stefan Kangas





  reply	other threads:[~2020-03-21  1:39 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-02-02 11:25 bug#2160: 23.0.60; Indentation of LOOP (cl-indent.el) tcr
2019-09-30  7:59 ` Lars Ingebrigtsen
2020-02-29  2:30   ` Stefan Kangas
2020-03-14 12:23     ` Lars Ingebrigtsen
2020-03-21  1:39       ` Stefan Kangas [this message]
2020-04-30  4:53         ` Lars Ingebrigtsen
2020-04-30  7:27           ` Stefan Kangas
2020-04-30 16:19             ` Stefan Kangas
2020-05-03 14:19               ` Stefan Kangas

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=87o8sq4hbz.fsf@stefankangas.se \
    --to=stefan@marxist.se \
    --cc=2160@debbugs.gnu.org \
    --cc=larsi@gnus.org \
    --cc=tcr@freebits.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).