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: Dan Sebald
Subject: [Octave-bug-tracker] [bug #44695] edit() doesn't open editor when --no-gui used
Date: Thu, 02 Apr 2015 07:23:31 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:18.0) Gecko/20100101 Firefox/18.0 SeaMonkey/2.15

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

If you'd like to change the meaning of the return value (i.e., zero for
success), go ahead.

Specific to this bug report, the __octave_link_edit_file__() script shouldn't
even be run.  In my version of the code is:


    ## If editing a new file, prompt for creation if gui is running
    if (isguirunning ())
      if (! __octave_link_edit_file__ (file, "prompt"));
        return;
      endif
    endif


Has something changed regarding this code?  Or perhaps in isguirunning()? 
Here is the isguirunning() definition as I have:


// Return int instead of bool because this function is declared extern "C".

int
octave_starting_gui (void)
{
  start_gui = check_starting_gui ();
  return start_gui;
}

DEFUN (isguirunning, args, ,
       "-*- texinfo -*-n
@deftypefn {Built-in Function} {} isguirunning ()n
Return true if Octave is running in GUI mode and false otherwise.n
@seealso{have_window_system}n
@end deftypefn")
{
  octave_value retval;

  if (args.length () == 0)
    retval = start_gui;
  else
    print_usage ();

  return retval;
}


    _______________________________________________________

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]