emacs-devel
[Top][All Lists]
Advanced

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

Re: Proposal for shell completion in M-x shell RET


From: David Kastrup
Subject: Re: Proposal for shell completion in M-x shell RET
Date: Mon, 10 Sep 2007 15:56:05 +0200
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1.50 (gnu/linux)

Andreas Schwab <address@hidden> writes:

> David Kastrup <address@hidden> writes:
>
>> The way this would work would be when TAB is pressed to send the
>> partial line up to the cursor as input to the shell, followed by TAB,
>> then capture the output from bash and interpret it (either inserting
>> completed output, or offering a completion menu).
>
> Command line editing is disabled in the inferior shell.  If you want to
> enable it you'll have to make sure all literal control characters are
> preceded by the quote character before sending the line to the
> shell.

Should be doable.  Command line editing is necessary for completion?

> You'll also have to enable echoing to be able to capture anything.

Hm.  Completion is not really echoing.  Worth an experiment, but
probably one could expect this to work on more shells if one did not
rely on a nice combination of non-echo/complete.

-- 
David Kastrup




reply via email to

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