emacs-devel
[Top][All Lists]
Advanced

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

Re: Feature request : Tab-completion for 'shell-comand'


From: Stefan Monnier
Subject: Re: Feature request : Tab-completion for 'shell-comand'
Date: Tue, 04 Mar 2008 20:55:06 -0500
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux)

> This is a useful feature to add to Emacs, and it is a pity it uses defadvices.
> Perhaps defadvices could be replaced by a new shell-command specific
> minibuffer keymap that just redefines TAB to perform completion on commands
> and file names.  What I mean basically is:

> (define-key shell-command-minibuffer-local-map "\t"
>   (lambda ()
>     (interactive)
>     (require 'shell)
>     (let ((comint-dynamic-complete-functions
>            shell-dynamic-complete-functions))
>       (comint-dynamic-complete))))

> and use this map for reading commands in shell-command,
> shell-command-on-region, grep, grep-find and compile.

Yes, that's indeed a desirable change.  Better yet would be if someone
could fix/improve the pcomplete code so that it can be used for that
as well.


        Stefan




reply via email to

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