[iterate-devel] making sbcl depend on iterate

Andreas Fuchs asf at boinkor.net
Sat Mar 17 08:33:13 UTC 2007


(sent to poster by mistake; sorry)

Chris Dean wrote:
> "Patrick X" <dabittweiler at gmail.com> writes:
>> hello i can't since to get the iterate to work via slime
>>
>> (asdf:operate 'asdf:load-op 'iterate)  ;is how i normally load the package
> 
> You need to put this in your sbcl startup code, not your .emacs file.
> Maybe someone more sbcl aware can tell you exactly how to configure
> it.

Writing the code above into the ~/.sbclrc file should be enough to
auto-load iterate on sbcl startup.

>> reading the iterate manual i still confuse on how to open files with iterate
>> (iterate:iter (for line in-file #p"/var/log/messages")
>>                 (do (print line)))
>> this is how i thought I should use it.
> 
> To read each line in a file use:
> 
>   (iter (for line in-file #p"/var/log/messages" :using 'read-line)
>         (print line))

also, make sure to use the iter: package prefix if you are in a package
that doesn't :use the symbols from the iter package.

Cheers,
-- 
Andreas Fuchs, (http://|im:asf@|mailto:asf@)boinkor.net, antifuchs




More information about the iterate-devel mailing list