From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Richard Stallman Newsgroups: gmane.emacs.devel,gmane.emacs.pretest.bugs Subject: Re: Directory name completion blocks when it shouldn't Date: Sun, 17 Dec 2006 00:37:41 -0500 Message-ID: References: <871wng3yyw.fsf@leeloo.anubex.internal> Reply-To: rms@gnu.org NNTP-Posting-Host: dough.gmane.org Content-Type: text/plain; charset=ISO-8859-15 X-Trace: sea.gmane.org 1166333982 29557 80.91.229.10 (17 Dec 2006 05:39:42 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 17 Dec 2006 05:39:42 +0000 (UTC) Cc: emacs-pretest-bug@gnu.org, ihs_4664@yahoo.com Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Dec 17 06:39:42 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by dough.gmane.org with esmtp (Exim 4.50) id 1GvokP-0002sQ-S0 for ged-emacs-devel@m.gmane.org; Sun, 17 Dec 2006 06:39:42 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GvokO-0000Le-PV for ged-emacs-devel@m.gmane.org; Sun, 17 Dec 2006 00:39:40 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1GvoiV-0007a1-EK for emacs-devel@gnu.org; Sun, 17 Dec 2006 00:37:43 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1GvoiU-0007ZO-Uq for emacs-devel@gnu.org; Sun, 17 Dec 2006 00:37:43 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GvoiU-0007ZD-Hu; Sun, 17 Dec 2006 00:37:42 -0500 Original-Received: from [199.232.76.164] (helo=fencepost.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.52) id 1GvoiU-0002Jw-KR; Sun, 17 Dec 2006 00:37:42 -0500 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.52) id 1GvoiT-0006Io-MF; Sun, 17 Dec 2006 00:37:41 -0500 Original-to: emacs-devel@gnu.org Original-To: Chris Moore In-Reply-To: (message from Chris Moore on Fri, 08 Dec 2006 15:54:11 +0100) 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:63876 gmane.emacs.pretest.bugs:15841 Archived-At: [I sent this message a week ago but did not get a response.] read-file-name-internal ignores the value of PREDICATE if ACTION is nil (ACTION is t if we are listing possible completions, and nil if are actually doing the completion) I wonder if that is a bug. Unfortunately there is no comment which explains why the code does this. I looked for calls to read-file-name that pass a predicate. Aside from this one, I found one other, in compile.el. The comment there suggests that in this case too it is a problem that read-file-name ignores the predicate. Is it feasible to fix read-file-name to obey the predicate in the completion case? It could be that the reason it doesn't do so was the difficulty of implementing that case efficiently. Would someone please try?