octave-maintainers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: History changes


From: Rik
Subject: Re: History changes
Date: Thu, 20 Dec 2012 14:31:04 -0800

On 12/20/2012 12:19 PM, address@hidden wrote:
> Message: 2
> Date: Thu, 20 Dec 2012 14:55:28 -0500
> From: "John W. Eaton" <address@hidden>
> To: Ben Abbott <address@hidden>
> Cc: octave maintainers mailing list <address@hidden>
> Subject: Re: clumsy patch for h = history (n)
> Message-ID: <address@hidden>
> Content-Type: text/plain; charset=us-ascii
>
> On 19-Dec-2012, Ben Abbott wrote:
>
> | On Dec 19, 2012, at 9:27 PM, John W. Eaton wrote:
> | 
> | > On 19-Dec-2012, Ben Abbott wrote:
> | > 
> | > | Perhaps the return cell-strings shouldn' t include the indices?
> | > 
> | > Oops.  I'm attaching an updated version of the changeset.
> | > 
> | > jwe
> | 
> | This one works for me!
>
> OK, I pushed it to savannah.  I'll leave it to someone else to decide
> whether the doc strings should be updated.
Yes to documentation.  The coolest new features won't get used if no one
knows about them.

Also, should we have a sensible default value for N if history is called
with no input?  Previously, it would display the entire history starting
from 1.  This could be pages worth of text if you keep the default
history_size of 1024.  Now, the default is 1 which produces just the last
command -- which is always history itself.  This is odd.  See sample
session below.

octave:8> x = 1
x =  1
octave:9> history
 1033 history
octave:10> history
 1034 history

I would think a value for N in the range of 10-20 would be a good default

--Rik


reply via email to

[Prev in Thread] Current Thread [Next in Thread]