Re: Set debug output width in REPL

2011-02-21 Thread Mark H Weaver
Mike Gran writes: > I find that the backtrace output in the REPL is too constrained > my verbose code. The attached patch would let one set the > width of the backtrace and locals meta-commands. > index d4b3e4a..40d720d 100644 > --- a/module/system/repl/command.scm > +++ b/module/system/repl/co

Re: Set debug output width in REPL

2011-02-21 Thread Mark H Weaver
I wrote: > It seems to me that *width* should not be a global variable, but rather > a per-repl setting. It probably belongs in the options field of the > record, no? See "repl-default-options" in repl/common.scm. Better yet, maybe it should be an optional attribute of the output port, which wo

Re: 2.0.x branched!

2011-02-21 Thread Ludovic Courtès
Hi Guilers! I agree with your suggestions. I think ‘stable-2.0’ should only get changes that preserve the C ABI and Scheme interface. Additions of new public functions/procedures or modules are generally welcome though they should discussed on a case-by-case basis IMO. Thanks, Ludo’.

Re: [Guile-commits] GNU Guile branch, stable-2.0, updated. v2.0.0-4-g3e05fc0

2011-02-21 Thread Ludovic Courtès
Hi! "Andy Wingo" writes: > fix a couple leaks in ports.c. thanks valgrind! > > * libguile/ports.c (scm_i_remove_port): Fix a case in which ports > explictly closed via close-port would leak their iconv_t data. > (scm_set_port_encoding_x): scm_i_set_port_encoding_x strdu

Re: [Guile-commits] GNU Guile branch, stable-2.0, updated. v2.0.0-4-g3e05fc0

2011-02-21 Thread Andy Wingo
On Mon 21 Feb 2011 21:50, l...@gnu.org (Ludovic Courtès) writes: >> --- a/libguile/ports.c >> +++ b/libguile/ports.c >> @@ -661,6 +661,19 @@ scm_i_remove_port (SCM port) >>scm_port_non_buffer (p); >>p->putback_buf = NULL; >>p->putback_buf_size = 0; >> + >> + if (p->input_cd != (iconv_

Re: Set debug output width in REPL

2011-02-21 Thread Mike Gran
> From:Mark H Weaver > > Mark wrote: > > It seems to me that *width* should not be a global variable, but rather > > a per-repl setting. It probably belongs in the options field of the > > record, no? See "repl-default-options" in > repl/common.scm. For my personal case, when I run the REPL

SCM_BOOL_T became #nil ?

2011-02-21 Thread nalaginrut
hi all. I found SCM_BOOL_T will convert to #nil in the Guile. If we write c-function like this: SCM_DEFINE(scm_my_init, "my-init", 1, 0, 0, (SCM flags), "Initializes my env.") #define FUNC_NAME s_scm_my_init { SCM_ASSERT(scm_is_integer(flags)