[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#2160: 23.0.60; Indentation of LOOP (cl-indent.el)
From: |
Lars Ingebrigtsen |
Subject: |
bug#2160: 23.0.60; Indentation of LOOP (cl-indent.el) |
Date: |
Mon, 30 Sep 2019 09:59:19 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) |
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
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- bug#2160: 23.0.60; Indentation of LOOP (cl-indent.el),
Lars Ingebrigtsen <=