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: Thu, 30 Apr 2020 09:27:58 +0200	[thread overview]
Message-ID: <878sid77r5.fsf@stefankangas.se> (raw)
In-Reply-To: <87imhh3779.fsf@gnus.org> (Lars Ingebrigtsen's message of "Thu, 30 Apr 2020 06:53:30 +0200")

Lars Ingebrigtsen <larsi@gnus.org> writes:

> Stefan Kangas <stefan@marxist.se> writes:
>
>> 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.
>
> The former looks like what I'd expect (as a Common Lisp programmer).
> Except that I would never ever do a newline after "(loop ".

OK, thanks.  Let's push to master then.

Best regards,
Stefan Kangas





  reply	other threads:[~2020-04-30  7:27 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
2020-04-30  4:53         ` Lars Ingebrigtsen
2020-04-30  7:27           ` Stefan Kangas [this message]
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=878sid77r5.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).