[Top][All Lists]
[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:52:18 +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.
>
> BTW, maybe we can do it the way `gdb' does it: instead of sending TAB, we
> send a "list_all_completions" command, presuming that bash offers such
> a function.
programmable completion is extensively context-sensitive (which is
pretty much its whole point: it does not just complete file names, but
also CVS revisions, options and other stuff).
And sending such a command would clobber the command history, too.
--
David Kastrup