From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Andrew Korty Newsgroups: gmane.emacs.help Subject: Change default behavior of completion-ignored-extensions Date: Mon, 01 Dec 2003 19:00:31 -0500 Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1070330892 9053 80.91.224.253 (2 Dec 2003 02:08:12 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 2 Dec 2003 02:08:12 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Dec 02 03:08:10 2003 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1AQzxS-0006Gh-00 for ; Tue, 02 Dec 2003 03:08:10 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.24) id 1AR0D8-0000sw-7l for geh-help-gnu-emacs@m.gmane.org; Mon, 01 Dec 2003 21:24:22 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24) id 1AQzYQ-00032g-AR for help-gnu-emacs@gnu.org; Mon, 01 Dec 2003 20:42:18 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24) id 1AQzXr-0002xf-Nx for help-gnu-emacs@gnu.org; Mon, 01 Dec 2003 20:42:14 -0500 Original-Received: from [199.232.41.8] (helo=mx20.gnu.org) by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168) (Exim 4.24) id 1AQzF8-0000rI-An for help-gnu-emacs@gnu.org; Mon, 01 Dec 2003 20:22:22 -0500 Original-Received: from [80.91.224.249] (helo=main.gmane.org) by mx20.gnu.org with esmtp (Exim 4.24) id 1AQyGt-0001tx-8y for help-gnu-emacs@gnu.org; Mon, 01 Dec 2003 19:20:07 -0500 Original-Received: from root by main.gmane.org with local (Exim 3.35 #1 (Debian)) id 1AQyGs-0008My-00 for ; Tue, 02 Dec 2003 01:20:06 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-To: help-gnu-emacs@gnu.org Original-Received: from sea.gmane.org ([80.91.224.252]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1AQxxw-0008BU-00 for ; Tue, 02 Dec 2003 01:00:32 +0100 Original-Received: from news by sea.gmane.org with local (Exim 3.35 #1 (Debian)) id 1AQxxw-0007xR-00 for ; Tue, 02 Dec 2003 01:00:32 +0100 Original-Lines: 34 Original-X-Complaints-To: usenet@sea.gmane.org User-Agent: Gnus/5.1002 (Gnus v5.10.2) Emacs/21.2 (darwin) Cancel-Lock: sha1:GXYcvVG5+4z2c9i0TTzOogHx1LY= X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.2 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:14823 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:14823 Greetings. How can I change the way completion-ignored-extensions is used by find-file? As it is, "lists of possible completions" aren't affected by this variable: ,----[ C-h v completion-ignored-extensions RET ] | Documentation: | *Completion ignores filenames ending in any string in this list. | This variable does not affect lists of possible completions, | but does affect the commands that actually do completions. `---- I'd like to add ./ and ../ to this variable and be able to tab-complete right through a directory with only one interesting entry. For example, if I have a directory ~/foo/ containing a subdirectory bar/, I should be able to type M-x find-file RET ~/foo TAB and end up with ~/foo/bar/ in the minibuffer instead of first getting "[Complete, but not unique]", hitting TAB again, getting "Completion List" buffer containing ./, ../, and bar/, and having to type "b TAB" to finally get what should have been obvious. I understand that completion-ignored-extensions is not supposed to work this way, but I want to change that behavior. It seems like I should be able to advise minibuffer-complete, but I haven't figured out how to do that successfully. -- Andrew J. Korty, Principal Security Engineer, GCIA, GCFA Office of the Vice President for Information Technology Indiana University