From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: Feature request : Tab-completion for 'shell-comand' Date: Tue, 04 Mar 2008 20:55:06 -0500 Message-ID: References: <874pbmjgsy.fsf@gmx.de> <87myperse5.fsf@jurta.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1204682121 32570 80.91.229.12 (5 Mar 2008 01:55:21 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 5 Mar 2008 01:55:21 +0000 (UTC) Cc: paul r , Michael Albinus , TSUCHIYA Masatoshi , emacs-devel@gnu.org To: Juri Linkov Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Mar 05 02:55:47 2008 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1JWirC-0004UG-PN for ged-emacs-devel@m.gmane.org; Wed, 05 Mar 2008 02:55:47 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JWiqf-0001e4-IJ for ged-emacs-devel@m.gmane.org; Tue, 04 Mar 2008 20:55:13 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JWiqc-0001dz-C9 for emacs-devel@gnu.org; Tue, 04 Mar 2008 20:55:10 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JWiqZ-0001d7-QU for emacs-devel@gnu.org; Tue, 04 Mar 2008 20:55:09 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JWiqZ-0001cw-Na for emacs-devel@gnu.org; Tue, 04 Mar 2008 20:55:07 -0500 Original-Received: from ironport2-out.pppoe.ca ([206.248.154.182]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JWiqZ-0004Wj-Cx for emacs-devel@gnu.org; Tue, 04 Mar 2008 20:55:07 -0500 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Ao8CAH6MzUfO+LKX/2dsb2JhbACra4EC X-IronPort-AV: E=Sophos;i="4.25,444,1199682000"; d="scan'208";a="15593575" Original-Received: from smtp.pppoe.ca ([65.39.196.238]) by ironport2-out.pppoe.ca with ESMTP; 04 Mar 2008 20:55:06 -0500 Original-Received: from pastel.home ([206.248.178.151]) by smtp.pppoe.ca (Internet Mail Server v1.0) with ESMTP id LEI66406; Tue, 04 Mar 2008 20:55:06 -0500 Original-Received: by pastel.home (Postfix, from userid 20848) id 6244F8359; Tue, 4 Mar 2008 20:55:06 -0500 (EST) In-Reply-To: <87myperse5.fsf@jurta.org> (Juri Linkov's message of "Wed, 05 Mar 2008 01:17:22 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) X-detected-kernel: by monty-python.gnu.org: Genre and OS details not recognized. X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:91344 Archived-At: > 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