[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #40600] edit: changing EDITOR after first call
From: |
Mike Miller |
Subject: |
[Octave-bug-tracker] [bug #40600] edit: changing EDITOR after first call to edit() has no effect |
Date: |
Sun, 17 Nov 2013 20:11:59 +0000 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/30.0.1599.101 Safari/537.36 |
Follow-up Comment #2, bug #40600 (project octave):
The edit function was one of the first things I looked at when I started
contributing to Octave. I got confused quickly with the hierarchical
preferences and permutations and gave up on it after a while.
I may still have a patch somewhere that addressed this one, I'll try to find
it. I think the consensus was that the default should match EDITOR, but still
allow them to be changed independently. I think my patch did something like
initialize the persistent value inside edit to an empty matrix. When the
function is called, if the value is empty, use the value of EDITOR, else use
the persistent value. This would allow edit to track EDITOR if EDITOR is
changed, but also allow edit to use a different editor if desired.
They should be allowed to be different, for example I would want EDITOR to be
"vim" for editing history in the console, but I would want the edit function
to launch "gvim" and return control to the Octave shell.
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?40600>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
- [Octave-bug-tracker] [bug #40600] edit: changing EDITOR after first call to edit() has no effect, Carnë Draug, 2013/11/16
- [Octave-bug-tracker] [bug #40600] edit: changing EDITOR after first call to edit() has no effect, Torsten, 2013/11/17
- [Octave-bug-tracker] [bug #40600] edit: changing EDITOR after first call to edit() has no effect,
Mike Miller <=
- [Octave-bug-tracker] [bug #40600] edit: changing EDITOR after first call to edit() has no effect, Mike Miller, 2013/11/22
- [Octave-bug-tracker] [bug #40600] edit: changing EDITOR after first call to edit() has no effect, Carnë Draug, 2013/11/23
- [Octave-bug-tracker] [bug #40600] edit: changing EDITOR after first call to edit() has no effect, Carnë Draug, 2013/11/23
- [Octave-bug-tracker] [bug #40600] edit: changing EDITOR after first call to edit() has no effect, Mike Miller, 2013/11/23
- [Octave-bug-tracker] [bug #40600] edit: changing EDITOR after first call to edit() has no effect, Torsten, 2013/11/23
- [Octave-bug-tracker] [bug #40600] edit: changing EDITOR after first call to edit() has no effect, Carnë Draug, 2013/11/23
- [Octave-bug-tracker] [bug #40600] edit: changing EDITOR after first call to edit() has no effect, Mike Miller, 2013/11/23
- [Octave-bug-tracker] [bug #40600] edit: changing EDITOR after first call to edit() has no effect, Torsten, 2013/11/23
- [Octave-bug-tracker] [bug #40600] edit: changing EDITOR after first call to edit() has no effect, Carnë Draug, 2013/11/23
- [Octave-bug-tracker] [bug #40600] edit: changing EDITOR after first call to edit() has no effect, Mike Miller, 2013/11/23