octave-bug-tracker
[Top][All Lists]
Advanced

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

[Octave-bug-tracker] [bug #44695] edit() doesn't open editor when --no-g


From: Rik
Subject: [Octave-bug-tracker] [bug #44695] edit() doesn't open editor when --no-gui used
Date: Thu, 02 Apr 2015 13:48:44 +0000
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:36.0) Gecko/20100101 Firefox/36.0

Follow-up Comment #2, bug #44695 (project octave):

The code in question is the do_edit function


function do_edit (editor, file, mode)

  ## Give the hook function a chance.
  ## If that fails, fall back on running an editor with the system function.

  status = __octave_link_edit_file__ (file);

  if (! status)
    system (sprintf (undo_string_escapes (editor), ['"' file '"']), [],
mode);
  endif

endfunction


It seems that somewhere in this function isguirunning() should be checked
before invoking __octave_link_edit_file__.


    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?44695>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

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