[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #39728] GUI command history incompatible with
From: |
Mike Miller |
Subject: |
[Octave-bug-tracker] [bug #39728] GUI command history incompatible with history_control |
Date: |
Thu, 08 Aug 2013 12:00:07 +0000 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/28.0.1500.95 Safari/537.36 |
URL:
<http://savannah.gnu.org/bugs/?39728>
Summary: GUI command history incompatible with
history_control
Project: GNU Octave
Submitted by: mtmiller
Submitted on: Thu 08 Aug 2013 08:00:01 AM EDT
Category: GUI
Severity: 2 - Minor
Priority: 5 - Normal
Item Group: Incorrect Result
Status: None
Assigned to: None
Originator Name:
Originator Email:
Open/Closed: Open
Discussion Lock: Any
Release: dev
Operating System: Any
_______________________________________________________
Details:
If history_control is set to "ignorespace", "ignoredups", "ignoreboth", or
"erasedups", the GUI command history panel still shows every entry typed in
the command window. When Octave exits and restarts, the command history panel
shows the correct history. I suppose this is because every command is sent to
the GUI on a separate channel from how readline records and saves history. The
following example session should show the bug:
>> history_control ("ignorespace")
>> x = 5;
>> x = 5;
>> # up-arrow twice to show correct history, then Ctrl-C
>> history_control ("ignoredups")
>> x = 5;
>> x = 5;
>> x = 5;
>> # up-arrow twice to show correct history, then Ctrl-C
>> history_control ("ignoreboth")
>> x = 5;
>> x = 5;
>> x = 5;
>> # up-arrow twice to show correct history, then Ctrl-C
>> history_control ("erasedups")
>> x = 5;
>> x = 6;
>> x = 5;
>> # up-arrow three times to show correct history, then Ctrl-C
>> exit # now exit and restart Octave, correct history shows
Nothing breaks, but it gives the GUI user a false sense of what is in the
history if any of the history control bits are set.
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?39728>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
- [Octave-bug-tracker] [bug #39728] GUI command history incompatible with history_control,
Mike Miller <=