From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Kevin Rodgers Newsgroups: gmane.emacs.devel Subject: Re: Q on read-file-name and completion-ignored-extensions Date: Wed, 18 Jan 2006 17:42:25 -0700 Message-ID: References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1137634822 26716 80.91.229.2 (19 Jan 2006 01:40:22 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 19 Jan 2006 01:40:22 +0000 (UTC) Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Jan 19 02:40:20 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1EzOmf-0001aR-EF for ged-emacs-devel@m.gmane.org; Thu, 19 Jan 2006 02:40:18 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EzOp4-0005a3-Fm for ged-emacs-devel@m.gmane.org; Wed, 18 Jan 2006 20:42:46 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1EzNvV-0001p0-Fb for emacs-devel@gnu.org; Wed, 18 Jan 2006 19:45:21 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1EzNvP-0001nE-5q for emacs-devel@gnu.org; Wed, 18 Jan 2006 19:45:16 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EzNvM-0001mI-IR for emacs-devel@gnu.org; Wed, 18 Jan 2006 19:45:12 -0500 Original-Received: from [80.91.229.2] (helo=ciao.gmane.org) by monty-python.gnu.org with esmtp (TLS-1.0:RSA_AES_128_CBC_SHA:16) (Exim 4.34) id 1EzNzI-0003FL-VX for emacs-devel@gnu.org; Wed, 18 Jan 2006 19:49:17 -0500 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1EzNsr-0005oh-RN for emacs-devel@gnu.org; Thu, 19 Jan 2006 01:42:37 +0100 Original-Received: from 207.167.42.60 ([207.167.42.60]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 19 Jan 2006 01:42:37 +0100 Original-Received: from ihs_4664 by 207.167.42.60 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 19 Jan 2006 01:42:37 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-To: emacs-devel@gnu.org Original-Lines: 36 Original-X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: 207.167.42.60 User-Agent: Mozilla Thunderbird 0.9 (X11/20041105) X-Accept-Language: en-us, en In-Reply-To: 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:49248 Archived-At: Drew Adams wrote: > > Function `read-file-name' does not seem to respect > > `completion-ignored-extensions'. > > Works for me and worked in Emacs-20 and Emacs-21 as well. > Please give a recipe. > > emacs -q > > (setq completion-ignored-extensions (cons ".el" > completion-ignored-extensions)) > > cd to a directory with .el files > > M-: (read-file-name "foo: ") > > Type the beginning of the name of one of the .el files - e.g. app, then TAB. > > I see all files starting with "app" in *Completions*, including .el files. > If there is only one matching file, then its name is inserted in the > minibuffer. > > In Emacs 20.7 and also in GNU Emacs 22.0.50.1 (i386-mingw-nt5.1.2600) > of 2005-06-26 on NONIQPC > X server distributor `Microsoft Corp.', version 5.1.2600 > configured using `configure --with-gcc > (3.3) --cflags -I../../jpeg-6b-3/include -I../../libpng-1.2.8/include -I../. > ./tiff-3.6.1-2/include -I../../xpm-nox-4.2.0/include -I../../zlib-1.2.2/incl > ude' Not for me, in Emacs 21.4 on Solaris 9. Try it with `emacs -q --no-site-file` just to make sure it's not a problem with your local configuration. -- Kevin Rodgers