Navigation

Operators and Keywords

Function List:

C++ API

: val = EDITOR ()
: old_val = EDITOR (new_val)
: EDITOR (new_val, "local")

Query or set the internal variable that specifies the default text editor.

The default value is taken from the environment variable EDITOR when Octave starts. If the environment variable is not initialized, EDITOR will be set to "emacs".

When called from inside a function with the "local" option, the variable is changed locally for the function and any subroutines it calls. The original variable value is restored when exiting the function.

See also: edit, edit_history.

Package: octave