GUD octave support
Shai Ayal
shaiay at gmail.com
Tue Dec 11 04:22:41 CST 2007
On Dec 11, 2007 11:40 AM, Nick Roberts <nickrob at snap.net.nz> 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();"
More information about the Octave-maintainers
mailing list