[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: GUD octave support
From: |
Shai Ayal |
Subject: |
Re: GUD octave support |
Date: |
Tue, 11 Dec 2007 12:22:41 +0200 |
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();"
- Re: GUD octave support, (continued)
- Re: GUD octave support, John W. Eaton, 2007/12/05
- Re: GUD octave support, Nick Roberts, 2007/12/07
- Re: GUD octave support, John W. Eaton, 2007/12/07
- Re: GUD octave support, Nick Roberts, 2007/12/08
- Re: GUD octave support, John W. Eaton, 2007/12/10
- Re: GUD octave support, Nick Roberts, 2007/12/10
- Re: GUD octave support, John W. Eaton, 2007/12/11
- Re: GUD octave support, Nick Roberts, 2007/12/11
- Re: GUD octave support, Shai Ayal, 2007/12/11
- Re: GUD octave support, Nick Roberts, 2007/12/11
- Re: GUD octave support,
Shai Ayal <=
- Re: GUD octave support, John W. Eaton, 2007/12/11
- Re: GUD octave support, John W. Eaton, 2007/12/11
- Re: GUD octave support, Nick Roberts, 2007/12/11