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 18:59:06 -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 1070345354 28133 80.91.224.253 (2 Dec 2003 06:09:14 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 2 Dec 2003 06:09:14 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Dec 02 07:09:12 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 1AR3ih-00066J-00 for ; Tue, 02 Dec 2003 07:09:11 +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 1AR4cv-0001A4-H1 for geh-help-gnu-emacs@m.gmane.org; Tue, 02 Dec 2003 02:07:17 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24) id 1AR0bF-0004I9-Pb for help-gnu-emacs@gnu.org; Mon, 01 Dec 2003 21:49:17 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24) id 1AQzVx-0002jG-6U for help-gnu-emacs@gnu.org; Mon, 01 Dec 2003 20:40:16 -0500 Original-Received: from [80.91.224.249] (helo=main.gmane.org) by monty-python.gnu.org with esmtp (Exim 4.24) id 1AQyu4-0006ZX-Hz for help-gnu-emacs@gnu.org; Mon, 01 Dec 2003 20:00:36 -0500 Original-Received: from list by main.gmane.org with local (Exim 3.35 #1 (Debian)) id 1AQxwb-0008AY-00 for ; Tue, 02 Dec 2003 00:59:09 +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 1AQxwa-0008AQ-00 for ; Tue, 02 Dec 2003 00:59:08 +0100 Original-Received: from news by sea.gmane.org with local (Exim 3.35 #1 (Debian)) id 1AQxwa-0007uE-00 for ; Tue, 02 Dec 2003 00:59:08 +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:PHxWnOuE9YQrcPv66xwjddjkCqY= 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:14833 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:14833 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