help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Opening editor from Octave command line


From: Bowles.Terry
Subject: Opening editor from Octave command line
Date: Tue, 25 Sep 2012 12:43:54 -0400

Hi, sorry for such a fundamental question, new to Octave, migrating from Matlab.

 

Want to use ‘edit’ command to create new m-file if it doesn’t exist or open one in my editor if it does exist:

 

octave> edit some_fnc

 

I changed the octaverc file to point to my editor:

 

## Uncomment and change following line for your preferred editor

EDITOR('C:\\Program Files\\Notepad++\\notepad++.exe');

 

and I added to the path the directory where my functions live:

 

octave> addpath (some_path/some_dir, 1)

 

To create a new file in some_dir, I do the following:

 

octave> cd some_path/some_dir

octave> edit some_fnc

 

To edit a file that already exists in some_path/some_dir, I can of course skip the ‘cd some_path/some_dir’ command, since that directory is in the path:

 

octave> edit some_fnc

 

In either case I get the same error message:

 

error: system: CreateProcess failed – can’t create child process

error: called from:

error:     D:\program files\Octave3.6.1_gcc4.6.2\share\octave\3.6.1\m\miscellaneous\edit.m at line 299, column 7

 

I frankly cannot understand the edit.m file well enough to diagnose the problem myself.

 

BTW, when creating some_fnc for the first time, Octave does NOT open some_fnc in my editor as hoped, but it DOES create a some_fnc.m function stub in some_path/some_dir.

 

Any help would be much appreciated. Thanks so much!

 



The information contained in this email message is intended only for the use of the individual(s) to whom it is addressed and may contain information that is privileged and sensitive. If you are not the intended recipient, or otherwise have received this communication in error, please notify the sender immediately by email at the above referenced address and note that any further dissemination, distribution or copying of this communication is strictly prohibited.

The U.S. Export Control Laws regulate the export and re-export of technology originating in the United States. This includes the electronic transmission of information and software to foreign countries and to certain foreign nationals. Recipient agrees to abide by these laws and their regulations -- including the U.S. Department of Commerce Export Administration Regulations and the U.S. Department of State International Traffic in Arms Regulations -- and not to transfer, by electronic transmission or otherwise, any content derived from this email to either a foreign national or a foreign destination in violation of such laws.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]