From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Luc Teirlinck Newsgroups: gmane.emacs.devel Subject: Re: Q on read-file-name and completion-ignored-extensions Date: Thu, 19 Jan 2006 18:47:16 -0600 (CST) Message-ID: <200601200047.k0K0lG025176@raven.dms.auburn.edu> References: NNTP-Posting-Host: main.gmane.org X-Trace: sea.gmane.org 1137718281 28938 80.91.229.2 (20 Jan 2006 00:51:21 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 20 Jan 2006 00:51:21 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Jan 20 01:51:15 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 1EzkUa-0005Pj-RK for ged-emacs-devel@m.gmane.org; Fri, 20 Jan 2006 01:51:05 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EzkX2-0008FA-W7 for ged-emacs-devel@m.gmane.org; Thu, 19 Jan 2006 19:53:37 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1EzkWQ-0008Bh-CQ for emacs-devel@gnu.org; Thu, 19 Jan 2006 19:52:58 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1EzkWM-00087g-Cr for emacs-devel@gnu.org; Thu, 19 Jan 2006 19:52:57 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EzkWK-00087C-HI for emacs-devel@gnu.org; Thu, 19 Jan 2006 19:52:52 -0500 Original-Received: from [131.204.53.104] (helo=manatee.dms.auburn.edu) by monty-python.gnu.org with esmtp (Exim 4.34) id 1EzkaR-000632-TW for emacs-devel@gnu.org; Thu, 19 Jan 2006 19:57:08 -0500 Original-Received: from raven.dms.auburn.edu (raven.dms.auburn.edu [131.204.53.29]) by manatee.dms.auburn.edu (8.13.3+Sun/8.13.3) with ESMTP id k0K0oIUr025317; Thu, 19 Jan 2006 18:50:18 -0600 (CST) Original-Received: (from teirllm@localhost) by raven.dms.auburn.edu (8.11.7p1+Sun/8.11.7) id k0K0lG025176; Thu, 19 Jan 2006 18:47:16 -0600 (CST) X-Authentication-Warning: raven.dms.auburn.edu: teirllm set sender to teirllm@dms.auburn.edu using -f Original-To: drew.adams@oracle.com In-reply-to: X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-2.0.1 (manatee.dms.auburn.edu [131.204.53.104]); Thu, 19 Jan 2006 18:50:18 -0600 (CST) 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:49284 Archived-At: Drew Adams wrote: That seems to corroborate my feeling that either there is a bug (on Windows) or the doc string for `completion-ignored-extensions' is incorrect. What about the alternative docstring in the patch below? That one should describe the actual behavior or there _is_ a bug (on Windows). I can install if desired. To explain what _should_ happen and _does_ happen on GNU/Linux: I have four files starting with cin: cinv.tex, cinv.tex~, cinv.aux and cinv.dvi. All but one end in a string in completion-ignored-extensions. If I do `C-x C-f cin TAB', it completes to cinv.tex, ignoring the three other ones. But if I do `C-x C-f cin ?', I get a list of all four. This feature is meant to allow you to complete to what you _probably_ want with less typing. It is _not_ meant to prevent you from visiting files that end in one of these suffixes. ===File ~/dired.c-diff====================================== *** dired.c 01 Oct 2005 08:42:10 -0500 1.119 --- dired.c 19 Jan 2006 18:37:07 -0600 *************** *** 1036,1046 **** #endif /* VMS */ DEFVAR_LISP ("completion-ignored-extensions", &Vcompletion_ignored_extensions, ! doc: /* *Completion ignores filenames ending in any string in this list. ! Directories are ignored if they match any string in this list which ! ends in a slash. ! This variable does not affect lists of possible completions, ! but does affect the commands that actually do completions. */); Vcompletion_ignored_extensions = Qnil; } --- 1036,1046 ---- #endif /* VMS */ DEFVAR_LISP ("completion-ignored-extensions", &Vcompletion_ignored_extensions, ! doc: /* Completion ignores file names ending in any string in this list. ! It does not ignore them if all possible completions end in one of ! these strings or when displaying a list of completions. ! It ignores directory names if they match any string in this list which ! ends in a slash. */); Vcompletion_ignored_extensions = Qnil; } ============================================================