Skip to content

Commit

Permalink
maint: merge stable to default
Browse files Browse the repository at this point in the history
  • Loading branch information
Rik committed Jan 29, 2025
2 parents afb4689 + 0b2616e commit c3badf6
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
6 changes: 5 additions & 1 deletion libinterp/corefcn/environment.cc
Original file line number Diff line number Diff line change
Expand Up @@ -162,12 +162,16 @@ DEFMETHOD (EDITOR, interp, args, nargout,
@deftypefn {} {@var{val} =} EDITOR ()
@deftypefnx {} {@var{old_val} =} EDITOR (@var{new_val})
@deftypefnx {} {@var{old_val} =} EDITOR (@var{new_val}, "local")
Query or set the internal variable that specifies the default text editor.
Query or set the internal variable that specifies the default text editor when
using the CLI.
The default value is taken from the environment variable
@w{@env{EDITOR}}@ when Octave starts. If the environment variable is not
initialized, @w{@env{EDITOR}}@ will be set to @qcode{"emacs"}.
@emph{Note:} This setting applies when running the CLI. When using the
Octave GUI the default editor is specified in the Editor tab of Preferences.
When called from inside a function with the @qcode{"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.
Expand Down
4 changes: 3 additions & 1 deletion scripts/miscellaneous/edit.m
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,9 @@
## Edit the named function, or change editor settings.
##
## If @code{edit} is called with the name of a file or function as its
## argument it will be opened in the text editor defined by @env{EDITOR}.
## argument it will be opened in the default text editor. The default editor
## for the Octave GUI is specified in the Editor tab of Preferences. The
## default editor for the CLI is specified by the @code{EDITOR} function.
##
## @itemize @bullet
## @item
Expand Down

0 comments on commit c3badf6

Please sign in to comment.