From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.help Subject: Re: ignore CVS directories with tab complete Date: 13 Aug 2003 08:34:17 +0200 Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: References: Reply-To: Eli Zaretskii NNTP-Posting-Host: deer.gmane.org X-Trace: sea.gmane.org 1060753187 20775 80.91.224.253 (13 Aug 2003 05:39:47 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 13 Aug 2003 05:39:47 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Aug 13 07:39:45 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 19moML-0000if-00 for ; Wed, 13 Aug 2003 07:39:45 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.20) id 19moIS-0004mw-D3 for geh-help-gnu-emacs@m.gmane.org; Wed, 13 Aug 2003 01:35:44 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.20) id 19moGl-0004DH-Ky for help-gnu-emacs@gnu.org; Wed, 13 Aug 2003 01:33:59 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.20) id 19moFO-0008D7-Vp for help-gnu-emacs@gnu.org; Wed, 13 Aug 2003 01:33:06 -0400 Original-Received: from [207.232.27.5] (helo=WST0054) by monty-python.gnu.org with asmtp (Exim 4.20) id 19moFL-0007s3-E9 for help-gnu-emacs@gnu.org; Wed, 13 Aug 2003 01:32:31 -0400 Original-To: help-gnu-emacs@gnu.org In-reply-to: (message from Phillip Lord on 12 Aug 2003 19:10:40 +0100) 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:11778 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:11778 > From: Phillip Lord > Newsgroups: gnu.emacs.help > Date: 12 Aug 2003 19:10:40 +0100 > > If I start a clean emacs (-q --no-site-file), and then change into a > directory with only two sub-dirs, one of which is CVS, and then hit > tab I get... > > Completions > > ../ ./ CVS/ uk/ What command did you invoke before hitting TAB? Was that "C-x C-f" or something else? > a) is there any way of getting emacs to ignore the CVS directory all > together. That way I could move up five empty directories with five > tabs. What version of Emacs is that? Emacs already has "CVS/" in the value of the variable `completion-ignored-extensions' (together with "./" and "../", which you also see on your system), so it should ignore those by default, unless they are the only files in the directory. But some past versions of Emacs had a bug that would cause the ignored directories to show anyhow. What you ask in a) above already works for me in the CVS version of Emacs; I'm not sure if Emacs 21.2 or 21.3 has that bug fixed, though. > b) even better, have emacs realise that there are five empty > directories, and auto complete all the way up. I don't think it is a good idea to have such a feature: a user could have in mind creation of a file in one of the empty directories on the way down.