About REPL hook

2012-11-28 Thread nalaginrut
I want to do some magic to let REPL display in color. But I found there's no content about REPL hook in Guile manual. And how can I get the result-string which the REPL is going to output? Anyone point me out? Thanks!

Re: More RTL Tests

2012-11-28 Thread Stefan Israelsson Tampe
Hi Noah, I have a fix to rtl.scm that add an instruction macro like this (toplevel dst sym) e.g. (toplevel 0 pk) to refere to pk in the current module I can send you a patch if you like, it's very instructing for learning how to program the rtl machine to your needs. And it also allows you to

Re: More RTL Tests

2012-11-28 Thread Noah Lavine
I would definitely like to see something like that appear in the RTL branch. Otherwise it might be very difficult to write RTL code. Rather than sending me a patch, I'd like to know what Andy Wingo's plans were for accessing variables. I imagine he was thinking of something like this too, so the b

Re: More RTL Tests

2012-11-28 Thread Stefan Israelsson Tampe
>Rather than sending me a patch, I'd like to know what Andy Wingo's plans were for accessing variables. I imagine he >was thinking of something like this too, so the best thing would be to get that patch merged into the regular wip-rtl branch. Yea that's of cause best, but for now we can just lurk

web: New ‘http-get*’ and ‘response-body-port’ procedures

2012-11-28 Thread Ludovic Courtès
Hi, I just added two web client procedures: ‘response-body-port’ and ‘http-get*’, both of which return an input port from which to read a response’s body. Previously, ‘http-get’ and ‘read-response-body’ kindly invited the user to store everything in memory, which is not always desirable. Hence t

[PATCH] Add parse-path-with-ellipsis, and use it for GUILE_LOAD_PATH et al

2012-11-28 Thread Mark H Weaver
Hi Ludovic, l...@gnu.org (Ludovic Courtès) writes: > I pretty much like Mark’s suggestion of using ‘...’ as a special marker, > even though that’s a valid file name. Here's a patch to implement the "..." special marker. It would be good to have this in 2.0.7. What do you think? Mark >Fr

Re: [PATCH] Add parse-path-with-ellipsis, and use it for GUILE_LOAD_PATH et al

2012-11-28 Thread Ludovic Courtès
Hi Mark, Mark H Weaver skribis: > From 4a78f4a638334a5bd8eb08308891b541bbde9b1e Mon Sep 17 00:00:00 2001 > From: Mark H Weaver > Date: Wed, 28 Nov 2012 18:01:35 -0500 > Subject: [PATCH] Add parse-path-with-ellipsis, and use it for GUILE_LOAD_PATH > et al. > > * libguile/load.c (scm_parse_path_

Re: [PATCH] Add parse-path-with-ellipsis, and use it for GUILE_LOAD_PATH et al

2012-11-28 Thread Mark H Weaver
Hi Ludovic, l...@gnu.org (Ludovic Courtès) writes: > Mark H Weaver skribis: > >> +#define FUNC_NAME s_scm_parse_path_with_ellipsis >> +{ >> + SCM ellipsis = scm_from_latin1_string ("..."); > > Use ‘SCM_SYMBOL’ instead. It's a string, not a symbol. I changed it to a global static SCM initialize