From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Kevin Ryde Newsgroups: gmane.emacs.help Subject: Re: How to get pathname completion when doing 'M-!' Date: Thu, 22 Jan 2009 08:34:11 +1100 Organization: Bah Humbug Message-ID: <87ab9kmjho.fsf@blah.blah> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1232573873 11716 80.91.229.12 (21 Jan 2009 21:37:53 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 21 Jan 2009 21:37:53 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Jan 21 22:39:06 2009 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1LPkmn-000885-0P for geh-help-gnu-emacs@m.gmane.org; Wed, 21 Jan 2009 22:38:57 +0100 Original-Received: from localhost ([127.0.0.1]:59904 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LPklV-0002S3-FT for geh-help-gnu-emacs@m.gmane.org; Wed, 21 Jan 2009 16:37:37 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LPkj5-0001zL-4L for help-gnu-emacs@gnu.org; Wed, 21 Jan 2009 16:35:07 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LPkj3-0001ya-Lz for help-gnu-emacs@gnu.org; Wed, 21 Jan 2009 16:35:05 -0500 Original-Received: from [199.232.76.173] (port=43504 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LPkj2-0001yW-Hi for help-gnu-emacs@gnu.org; Wed, 21 Jan 2009 16:35:04 -0500 Original-Received: from mailout1-3.pacific.net.au ([61.8.2.210]:48691 helo=mailout1.pacific.net.au) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LPkj2-0006xu-1B for help-gnu-emacs@gnu.org; Wed, 21 Jan 2009 16:35:04 -0500 Original-Received: from mailproxy2.pacific.net.au (mailproxy2.pacific.net.au [61.8.2.163]) by mailout1.pacific.net.au (Postfix) with ESMTP id 8C81C41AE27 for ; Thu, 22 Jan 2009 08:34:50 +1100 (EST) Original-Received: from blah.blah (ppp2EE5.dyn.pacific.net.au [61.8.46.229]) by mailproxy2.pacific.net.au (Postfix) with ESMTP id 154B627411 for ; Thu, 22 Jan 2009 08:34:50 +1100 (EST) Original-Received: from gg by blah.blah with local (Exim 4.69) (envelope-from ) id 1LPkiB-0001L6-QL for help-gnu-emacs@gnu.org; Thu, 22 Jan 2009 08:34:11 +1100 In-Reply-To: (Francis Moreau's message of "Tue, 20 Jan 2009 08:49:07 +0100") User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/22.2 (gnu/linux) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:61543 Archived-At: Francis Moreau writes: > > I would find usefull to have pathname completion (as in a shell) in > the mini buffer when running the 'shell-command' command (M-!). For a long time I've pressed comint into service for Tab, (autoload 'comint-dynamic-complete-filename "comint" nil t) (define-key minibuffer-local-map "\t" 'comint-dynamic-complete-filename) `completing-read' has its own tab binding, so this doesn't interfere with that, you just get filenames completed in M-x compile and stuff like that. The autoload can be annoying on first use when its "loading" message hides the minibuffer for a second. There must be an easy way to suppress that, but I never bothered finding it.