Re: [Rd] print.closure at the R level

2009-04-21 Thread Martin Maechler
> "MM" == Martin Maechler > on Mon, 20 Apr 2009 23:23:23 +0200 writes: > "RF" == Romain Francois > on Mon, 20 Apr 2009 22:42:22 +0200 writes: RF> Hello, RF> Sorry if I have waisted any time of people truing this RF> patch. MM> yes, you did waste (sic) .

Re: [Rd] print.closure at the R level

2009-04-20 Thread Martin Maechler
> "RF" == Romain Francois > on Mon, 20 Apr 2009 22:42:22 +0200 writes: RF> Hello, RF> Sorry if I have waisted any time of people truing this RF> patch. yes, you did waste (sic) but thank you for the code suggestions anyway. RF> There was an issue with debuggin

Re: [Rd] print.closure at the R level

2009-04-20 Thread Romain Francois
Hello, Sorry if I have waisted any time of people truing this patch. There was an issue with debugging (use of debug and browser that caused an infinite recursion). I think this is now fixed. At the R level, I have now this : > print.function function (x, useSource = TRUE, ...) { invisib

Re: [Rd] print.closure at the R level

2009-04-19 Thread Romain Francois
Yesterday's patch did not print the attributes. This one seems fine: > f <- function(){} > attr( f, "yada" ) <- function( ) "lobster bisk" > f function(){} attr(,"yada") function( ) "lobster bisk" Romain Romain Francois wrote: Duncan Murdoch wrote: On 18/04/2009 10:12 AM, Romain Francois wrot

Re: [Rd] print.closure at the R level

2009-04-18 Thread Romain Francois
Duncan Murdoch wrote: On 18/04/2009 10:12 AM, Romain Francois wrote: Hello, Could the code that auto prints a function/closure be extracted from print.c so that there would be a print.closure function. I would like to be able to mask a print.closure function so that I have a custom auto-print

Re: [Rd] print.closure at the R level

2009-04-18 Thread Romain Francois
Duncan Murdoch wrote: On 18/04/2009 10:12 AM, Romain Francois wrote: Hello, Could the code that auto prints a function/closure be extracted from print.c so that there would be a print.closure function. I would like to be able to mask a print.closure function so that I have a custom auto-print

Re: [Rd] print.closure at the R level

2009-04-18 Thread Duncan Murdoch
On 18/04/2009 10:12 AM, Romain Francois wrote: Hello, Could the code that auto prints a function/closure be extracted from print.c so that there would be a print.closure function. I would like to be able to mask a print.closure function so that I have a custom auto-print. One reason for that i

[Rd] print.closure at the R level

2009-04-18 Thread Romain Francois
Hello, Could the code that auto prints a function/closure be extracted from print.c so that there would be a print.closure function. I would like to be able to mask a print.closure function so that I have a custom auto-print. One reason for that is I plan to have syntax highlighting within the