unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Lars Ingebrigtsen <larsi@gnus.org>
To: tcr@freebits.de
Cc: 2160@debbugs.gnu.org
Subject: bug#2160: 23.0.60; Indentation of LOOP (cl-indent.el)
Date: Mon, 30 Sep 2019 09:59:19 +0200	[thread overview]
Message-ID: <87pnjifc4o.fsf@gnus.org> (raw)
In-Reply-To: <87ab956pyk.fsf@freebits.de> (tcr@freebits.de's message of "Mon,  02 Feb 2009 12:25:07 +0100")

tcr@freebits.de writes:

> When using `common-lisp-indent-function', LOOP forms are by default
> indented as follows
>
>   (loop for x in '(a b c)
>      for y in '(1 2 3)
>      collect (cons x y))

(I'm going through old bug reports that unfortunately didn't get any
response at the time.)

This is still the case in Emacs 27.

> Setting the following
>
>   (setq lisp-simple-loop-indentation 1
>         lisp-loop-keyword-indentation 6
>         lisp-loop-forms-indentation 6)
>
> makes it be indented like
>
>   (loop for x in '(a b c)
>         for y in '(1 2 3)
>         collect (cons x y))
>
> which I think is more readable, and more canonical.
>
> I hence propose to change the default values in cl-indent.el of the
> above variables accordingly.

I agree that changing the default here would be a good idea, because
that's a very non-standard Common Lisp indentation.  Does anybody object
to changing it?

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





  reply	other threads:[~2019-09-30  7:59 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 [this message]
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
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=87pnjifc4o.fsf@gnus.org \
    --to=larsi@gnus.org \
    --cc=2160@debbugs.gnu.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).