From: Yuji Minejima
Subject: Extended loop macro indentation
Date: 
Message-ID: <pan.2004.11.01.00.44.35.988074@nifty.ne.jp>
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.

From: David Golden
Subject: Re: Extended loop macro indentation
Date: 
Message-ID: <P2ghd.40581$Z14.15121@news.indigo.ie>
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
From: Yuji Minejima
Subject: Re: Extended loop macro indentation
Date: 
Message-ID: <pan.2004.11.01.02.07.31.765712@nifty.ne.jp>
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.
From: Alain Picard
Subject: Re: Extended loop macro indentation
Date: 
Message-ID: <87pt2yhuev.fsf@memetrics.com>
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.
From: Yuji Minejima
Subject: Re: Extended loop macro indentation
Date: 
Message-ID: <pan.2004.11.02.04.36.34.971307@nifty.ne.jp>
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.