[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: REQUEST: change in replay history
From: |
Mario Storti |
Subject: |
Re: REQUEST: change in replay history |
Date: |
Tue, 17 Nov 1998 11:35:00 -0300 |
>>>>> On Tue, 17 Nov 1998 16:09:28 +0200 (SAT),
>>>>> Dirk Laurie <address@hidden> said:
> I have just been trying to find the previous command after a long
> debugging session in which every command was 'return'. After sixty
> or so 'return' replays, I gave up. I couldn't suppress the
> treacherous thought that Matlab 3.5, which I still use on my slow
> machine at home, does not add a command to the replay history if it
> is identical to the previous one.
> Would it require more than a simple string comparison to make Octave
> behave like that too?
> Dirk
I can not give a specific answer to your problem, I think that these
features come with the 'readline' package. I don't know what can be
done from the Octave side. Perhaps a workaround to solve your problem
is to grep the ~/.octave_hist file and cut-and-paste into the Octave's
command line.
I just want to point the wonderful history recovery mechanism that you
have if using the inferior-octave package under Emacs (due to (correct
me if I'm wrong) Kurt Hornik and JWE itself). First, you can recover
specific lines by entering the beginning of the line and then
"<Ctrl-c><Ctrl-b>". Includes commands of previous sessions. In
addition you can use all the power of 'the Editor' (just not to
mention His name, see
http://www.dina.kvl.dk/~abraham/religion/)
to find the command in the buffer which contains all your Octave
session, and edit it. Documentation of the Octave package for 'the
Editor' comes with the Octave's manual.
Mario
%%%%%%<>%%%%%%<>%%%%%%<>%%%%%%<>%%%%%%<>%%%%%%<>%%%%%%<>%%%%%%<>%%%%%%<>%
Mario Alberto Storti | Fax: (54)(42) 55.09.44 |
Centro Internacional de Metodos Computacionales| Tel: (54)(42) 55.91.75 |
en Ingenieria - CIMEC (INTEC/CONICET-UNL) |........................|
INTEC, Guemes 3450 - 3000 Santa Fe, Argentina |
Reply: address@hidden, http://venus.unl.edu.ar/gtm-eng.html |