[iterate-devel] making sbcl depend on iterate
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 i tried putting the depends-on function from the site in .emacs but it didn't work. I can I make sbcl depends on iterate everytime it is fire up. 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. -- ================================= knot in cables caused data stream to become twisted and kinked. http://groups.google.com/group/lispstl http://www.cwelug.org/ Patrick Pippen
"Patrick X" <dabittweiler@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
i tried putting the depends-on function from the site in .emacs but it didn't work. I can I make sbcl depends on iterate everytime it is fire up.
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.
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)) Cheers, Chris Dean
(sent to poster by mistake; sorry) Chris Dean wrote:
"Patrick X" <dabittweiler@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
participants (3)
-
Andreas Fuchs
-
Chris Dean
-
Patrick X