Are there any Emacs packages which perform loop macro indentation better
than cl-indent.el?
My current gripe is that cl-indent.el do the following indentation
(loop for item in list
when item
collect it)
while I want it to be
(loop for item in list
when item
collect it)
I just found the following link but haven't tried yet.
http://boinkor.net/lisp/cl-indent-patches.el .
I want to know what fellow lispers do about extended loop macro
indentation.
Also, is there some kind of Loop macro indentation specification?
I might write an indentation package myself if available ones aren't
enough.
Thanks in advance.
Yuji.
Yuji Minejima wrote:
> I want to know what fellow lispers do about extended loop macro
> indentation.
>
Well, avoiding loop by using iterate instead might be an option... ;-)
http://www.cliki.net/iterate
On Mon, 01 Nov 2004 01:11:11 +0000, David Golden wrote:
> Well, avoiding loop by using iterate instead might be an option... ;-)
>
> http://www.cliki.net/iterate
Yeah, you're right. I feel iterate is the correct version of loop.
Speaking of general iteration facilities, are there popular facilities out
there other than LOOP, ITERATE, and SERIES?
I haven't used SERIES but heard some good thing about it.
Yuji.
David Golden <············@oceanfree.net> writes:
> Yuji Minejima wrote:
>
>> I want to know what fellow lispers do about extended loop macro
>> indentation.
>>
>
> Well, avoiding loop by using iterate instead might be an option... ;-)
>
But if it _isn't_ an option, I'd also like to see an
good answer to the OP's question.
On Mon, 01 Nov 2004 09:44:36 +0900, Yuji Minejima wrote:
> My current gripe is that cl-indent.el do the following indentation
> (loop for item in list
> when item
> collect it)
> while I want it to be
> (loop for item in list
> when item
> collect it)
>
> I just found the following link but haven't tried yet.
> http://boinkor.net/lisp/cl-indent-patches.el .
>
cl-indent-patches.el does what I want, that is, it indents in the latter
style in the above examples.
But it indents `if else' clause in a wrong way (in my view) like this.
(loop if test do this
else do that)
which I think should be
(loop if test do this
else do that)
Oh well.
Yuji.