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:17 -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 1070335764 15565 80.91.224.253 (2 Dec 2003 03:29:24 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 2 Dec 2003 03:29:24 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Dec 02 04:29:22 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 1AR1E2-0000II-00 for ; Tue, 02 Dec 2003 04:29:22 +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 1AR1pg-0007a1-1v for geh-help-gnu-emacs@m.gmane.org; Mon, 01 Dec 2003 23:08:16 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24) id 1AR0UL-00039P-JE for help-gnu-emacs@gnu.org; Mon, 01 Dec 2003 21:42:09 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24) id 1AR00L-00070J-AL for help-gnu-emacs@gnu.org; Mon, 01 Dec 2003 21:11:40 -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 1AQzKM-0001QQ-0W for help-gnu-emacs@gnu.org; Mon, 01 Dec 2003 20:27:46 -0500 Original-Received: from [80.91.224.249] (helo=main.gmane.org) by mx20.gnu.org with esmtp (Exim 4.24) id 1AQy7E-0001IA-No for help-gnu-emacs@gnu.org; Mon, 01 Dec 2003 19:10:08 -0500 Original-Received: from root by main.gmane.org with local (Exim 3.35 #1 (Debian)) id 1AQy7D-0008Fz-00 for ; Tue, 02 Dec 2003 01:10:07 +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 1AQxxi-0008BK-00 for ; Tue, 02 Dec 2003 01:00:18 +0100 Original-Received: from news by sea.gmane.org with local (Exim 3.35 #1 (Debian)) id 1AQxxi-0007wq-00 for ; Tue, 02 Dec 2003 01:00:18 +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:TPBqjpfx9zkx5JirfHh0ukW5KHY= 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:14829 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:14829 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