octave-maintainers
[Top][All Lists]
Advanced

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

Re: GUD octave support


From: John W. Eaton
Subject: Re: GUD octave support
Date: Tue, 11 Dec 2007 13:55:37 -0500

On 11-Dec-2007, Shai Ayal wrote:

| On Dec 11, 2007 11:40 AM, Nick Roberts <address@hidden> wrote:
| >  > What is still not clear to me is:
| >  > Does GUD mode require a command line switch to enable the special
| >  > octave prompt or is it possible the GUD mode send a command to octave
| >  > upon startup which will set the octave prompt.
| >
| > I have said:
| >
| >  > >  > | Emacs could indeed send a special command to Octave when it 
starts up
| >  > >  > | in GUD mode
| >
| > but it's not setting the Octave prompt.  GUD would create a pty, fork and 
run
| > Octave as a child process in that pty, just as the command M-x run-octave or
| > M-x inferior-octave does.  In addition, however, GUD would filter the output
| > from Octave and, in particular, match on a file:line regexp so that it can
| > display the Octave source file in another buffer.
| >
| >  > If GUD supports both the command line and sending an octave command,
| >  > then we can start arguing about the merits of these approaches.
| >
| > GUD can use either.  It's for you (the Octave Maintainers) to decide which 
is
| > preferable.
| >
| Thanks for clearing this up for me.
| 
| I think if we make this a function than we can enjoy both worlds
| because then we can invoke the function from the command line:
| 
| octave --persist --eval "setup_gud();"

OK, how about the following patch?  With this change, the command line
could be

  octave --persist --eval "__gud_mode__ (true)"

I'm not sure I'm printing C-z correctly.  If not, then please fix and
submit a patch.

Thanks,

jwe



reply via email to

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