[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #35283] Edit command does not work
From: |
Randy |
Subject: |
[Octave-bug-tracker] [bug #35283] Edit command does not work |
Date: |
Thu, 07 Jun 2012 14:39:48 +0000 |
User-agent: |
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:12.0) Gecko/20100101 Firefox/12.0 |
Follow-up Comment #4, bug #35283 (project octave):
I'm also having the same issue with edit under Windows (Linux works fine).
After a little bit of hacking, it looks like the culprit is the FUNCTION.MODE
parameter in line 299 of edit.m:
system (sprintf (FUNCTION.EDITOR, cstrcat (""", fileandpath, """)), [],
FUNCTION.MODE);
Changing it from "async" to "sync" makes it work properly.
The documentation states that "The default is 'sync' (see also 'system')."
But, on line 157 of edit.m, it looks like the default is being set to 'async'.
Is the documentation in error? Did I misread the function? Or is the function
in error (by not agreeing with the documentation)? If the desired result is
that async be the default, would it not make sense to add an exception for
Windows platforms so that this command would work (edit is a lot more handy
than typing "system('gvim filename.m')" for every file I want to edit)?
Anyhow, I've resolved this issue (and you probably can too Mr. Anonymous) by
adding
edit mode 'sync';
to my .octaverc file.
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?35283>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
- [Octave-bug-tracker] [bug #35283] Edit command does not work,
Randy <=