From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Herbert Euler" Newsgroups: gmane.emacs.devel Subject: Suggestion on completion Date: Sat, 13 Jan 2007 20:07:15 +0800 Message-ID: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; format=flowed X-Trace: sea.gmane.org 1168690058 1740 80.91.229.12 (13 Jan 2007 12:07:38 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 13 Jan 2007 12:07:38 +0000 (UTC) Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Jan 13 13:07:35 2007 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1H5hfX-0003xx-SK for ged-emacs-devel@m.gmane.org; Sat, 13 Jan 2007 13:07:32 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1H5hfX-0003T9-Qz for ged-emacs-devel@m.gmane.org; Sat, 13 Jan 2007 07:07:31 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1H5hfM-0003Sy-CE for emacs-devel@gnu.org; Sat, 13 Jan 2007 07:07:20 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1H5hfL-0003Sg-KN for emacs-devel@gnu.org; Sat, 13 Jan 2007 07:07:20 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1H5hfL-0003Sd-FD for emacs-devel@gnu.org; Sat, 13 Jan 2007 07:07:19 -0500 Original-Received: from [65.54.246.236] (helo=bay0-omc3-s36.bay0.hotmail.com) by monty-python.gnu.org with esmtp (Exim 4.52) id 1H5hfL-00066f-6u for emacs-devel@gnu.org; Sat, 13 Jan 2007 07:07:19 -0500 Original-Received: from hotmail.com ([64.4.26.20]) by bay0-omc3-s36.bay0.hotmail.com with Microsoft SMTPSVC(6.0.3790.2668); Sat, 13 Jan 2007 04:07:17 -0800 Original-Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Sat, 13 Jan 2007 04:07:17 -0800 Original-Received: from 64.4.26.200 by by112fd.bay112.hotmail.msn.com with HTTP; Sat, 13 Jan 2007 12:07:15 GMT X-Originating-IP: [216.145.54.7] X-Originating-Email: [herberteuler@hotmail.com] X-Sender: herberteuler@hotmail.com Original-To: emacs-devel@gnu.org X-OriginalArrivalTime: 13 Jan 2007 12:07:17.0604 (UTC) FILETIME=[5EAEF240:01C7370B] X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:65175 Archived-At: Hello, The variable `completion-ignored-extensions' controls which file (directory) names are not to be completed if there are other possible completions. However, I found the current strategy of completion on directory names is not very reasonable. First, please think about the strategy applied on (non-directory) file names. If the name of some file matches an entry in `completion-ignored-extensions' from its end, it means that the file is not intended to be edited, at least in most situations. For example the extensions ``.o'', ``~'', ``.dvi'', ``.elc''. If these names are not completed, it is OK, since for example ``dired.o'' is not likely to be opened. I think it is not good to apply the same stragegy to directory names. There are two entries in `completion-ignored-extensions' that are directory names by default, i.e. ``.svn/'' and ``CVS/''. One can, of course, give a directory the name ``emacs.svn''; or, give a directory the name ``emacs-cvs'' on systems that ignores case in file (directory) names. But this should not prevent the names of the directories being provided as completion at first. These directories are likely to be opened after all. What are not likely to be opened are the directories ``.svn/'' and ``CVS/''. So, is it better to treat two directory names matching iff they are precisely equal? If so, I'd like to work on it. Thanks in advance. Regards, Guanpeng Xu _________________________________________________________________ Express yourself instantly with MSN Messenger! Download today it's FREE! http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/