From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Mathias Dahl" Newsgroups: gmane.emacs.devel Subject: Re: Still bugs in read-file-name completion on w32 Date: Tue, 25 Apr 2006 15:56:47 +0200 Message-ID: <7dbe73ed0604250656y32228b4ar28c2cbf45864948f@mail.gmail.com> References: <4447992F.6040102@student.lu.se> <7dbe73ed0604210426j76e4e1aaj5857c8f7949fce24@mail.gmail.com> <4448DF20.6020800@gnu.org> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: sea.gmane.org 1145973447 7460 80.91.229.2 (25 Apr 2006 13:57:27 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 25 Apr 2006 13:57:27 +0000 (UTC) Cc: Lennart Borgman , Emacs Devel , Jason Rumney Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Apr 25 15:57:25 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 1FYO2J-0003Kz-1b for ged-emacs-devel@m.gmane.org; Tue, 25 Apr 2006 15:57:03 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FYO2I-00050m-Kp for ged-emacs-devel@m.gmane.org; Tue, 25 Apr 2006 09:57:02 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1FYO26-00050h-RE for emacs-devel@gnu.org; Tue, 25 Apr 2006 09:56:50 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1FYO25-00050U-0y for emacs-devel@gnu.org; Tue, 25 Apr 2006 09:56:50 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FYO24-00050R-SM for emacs-devel@gnu.org; Tue, 25 Apr 2006 09:56:48 -0400 Original-Received: from [64.233.162.200] (helo=nz-out-0102.google.com) by monty-python.gnu.org with esmtp (Exim 4.52) id 1FYO4X-00066i-Sg for emacs-devel@gnu.org; Tue, 25 Apr 2006 09:59:22 -0400 Original-Received: by nz-out-0102.google.com with SMTP id q3so1741521nzb for ; Tue, 25 Apr 2006 06:56:47 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=IyyYN/1a/vmaE3+amRfrVA9l2FmT/mtLlVzg+UN2HqvjKecwtR0ma7W6+wssogUE0v+Fnt9ZRCZUBrXEv7II5sPcLafKGfm0RkBByHPdByyXbu8dpo+4T4VDg6wIv7EADmj7RdigzulwfjQZKaFBqpaRuGJJswC7L7OhbLgTdFA= Original-Received: by 10.36.227.75 with SMTP id z75mr1007231nzg; Tue, 25 Apr 2006 06:56:47 -0700 (PDT) Original-Received: by 10.36.220.66 with HTTP; Tue, 25 Apr 2006 06:56:47 -0700 (PDT) Original-To: "Stefan Monnier" In-Reply-To: Content-Disposition: inline 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:53382 Archived-At: > > I think this is by design. Completion is there to help the user choose > > a file, not to prevent them from choosing the wrong file. By default we > > ignore backup files and known binary suffixes, but if the only match fo= r > > what the user has typed is a file that we would normally ignore, then w= e > > happily complete to that, because ultimately the user knows best. > Are you sure? > I know this is the expected behavior of completion-ignored-extensions, bu= t > I didn't know this is the expected behavior of the `predicate' argument t= o > read-file-name. I agree, and the documentation string is quite clear: ... If optional sixth arg predicate is non-nil, possible completions and the resulting file name must satisfy (funcall predicate NAME). ... *Must* satisfy. /Mathias