GNU bug report logs - #2160
23.0.60; Indentation of LOOP (cl-indent.el)

Previous Next

Package: emacs;

Reported by: tcr <at> freebits.de

Date: Mon, 2 Feb 2009 11:35:03 UTC

Severity: wishlist

Tags: patch

Fixed in version 28.1

Done: Stefan Kangas <stefan <at> marxist.se>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Stefan Kangas <stefan <at> marxist.se>
To: Lars Ingebrigtsen <larsi <at> gnus.org>
Cc: tcr <at> freebits.de, 2160 <at> debbugs.gnu.org
Subject: bug#2160: 23.0.60; Indentation of LOOP (cl-indent.el)
Date: Sat, 21 Mar 2020 02:39:12 +0100
Lars Ingebrigtsen <larsi <at> 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




This bug report was last modified 5 years and 102 days ago.

Previous Next


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