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 16:30:01 +0200
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1.50 (gnu/linux)

Stefan Monnier <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,
>
> It would most likely have to be another key, because shell.el cannot know if
> the command is sent to bash or to some other application, so it could only
> be the user's choice to either get local completion or to send "prefix string
> plus TAB" to the application.

Maybe this can help on some platforms?

process-running-child-p is a built-in function in `C source code'.
(process-running-child-p &optional PROCESS)

Return t if PROCESS has given the terminal to a child.
If the operating system does not make it possible to find out,
return t unconditionally.

[back]

Anyway, one could just send the partial line plus TAB to the other
application, anyway.  If it just echoes it, no harm is done.  The
behavior should work for most applications that use either a normal
stty setting or readline.

-- 
David Kastrup




reply via email to

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