Finally I tried something I had not tried: I changed the Notepad + +. exe directory! I put it in the directory of the Octave. And 'voilá', 'presto': the command system ('C: \ \ Octave \ \ Notepad + + \ \ Notepad + +. Exe') worked fine!
After I edited the file with octaverc.m: EDITOR ('C: \ \ Octave \ \ Notepad + + \ \ Notepad + +. Exe') and the command >> edit teste.m obeyed submissively.
Well, what's the conclusion?
With Windows 7 64-bit does not install Notepad + +. Exe, or any other editor in a directory containing 'space' as, for example, 'C:\Octave\C:\Program Files (x86)\Notepad + +. Exe' ! In Octave it does not work, it will return an error. And it seems that you need a double backslashes.
Well that was what I was thinking...
So I restored the computer to the state before installing Notepad++ in the directory of Octave.
And I deleted the Notepad++'s directory from the directory of Octave.
Finally, I changed the 'octaverc.m' file to "EDITOR ('C:\\Program Files (x86)\\Notepad++\\ notepad++. Exe');" and, amazingly, when I typed 'teste.m' at the command line of Octave, he gave no more error message!!!
So, I did not understand what happened! But it is working now.
Thanks a lot for the help!!
Nilson
Date: Mon, 12 Nov 2012 22:38:09 -0800
From:
[hidden email]To:
[hidden email]Subject: RE: Opening editor from Octave command line
Nilson wrote
Yeah, Nitzan, you're rigth, my windows 7 is a 64bit version and I'd changed the octaverc file like this:## Uncomment and change following line for your preferred editorEDITOR('C:\\Arquivos de Programas (x86)\\Notepad++\\notepad++.exe');
But it didn't work even so!
Can you check whether that your 'Arquivos de Programas (x86)' directory name contains any non-english characters ?
Can you try and report the result of the following system command from your octave prompt:
system(<your octaverc EDITOR string including the quotes>)
This should also opening your installed editor if it is reachable by the specified command string. At least on my system (win7 x64), this command works with any combination of slashes (single or double backslash or single slash.
To unsubscribe from Opening editor from Octave command line,
click here.
NAML