help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: Using readline with Emacs shell or eshell or ???


From: Ilya Zakharevich
Subject: Re: Using readline with Emacs shell or eshell or ???
Date: Wed, 30 Apr 2003 23:23:13 +0000 (UTC)

[A complimentary Cc of this posting was sent to
Stefan Monnier
<monnier+gnu.emacs.help/news/@flint.cs.yale.edu>], who wrote in article 
<5lhe8fion1.fsf@rum.cs.yale.edu>:
> > For an example that works (but might not be the best implementation)
> > take a look at the inferior-octave-complete function in the Emacs mode
> > for running Octave inside Emacs (octave-inf.el).  The Emacs function
> > for completion sends a command to Octave to generate completions and
> > then displays them.  It uses comint for some of the ugly stuff, so the
> 
> I haven't looked at how octave-inf.el does it, but gud.el does it
> as well when interacting with gdb, so you can also look at that
> one.  If you look at both and get some insight, I'd like to
> hear about it.

IIRC, gdb has "complete" command.  GUD erases the current line, sends
the complete command, processes the output, then restores the current
line and acts on the completion list.

Do not think one can do anything with a random non-cooperating program.

Hope this helps,
Ilya



reply via email to

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