From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Lennart Borgman Newsgroups: gmane.emacs.devel Subject: Still bugs in read-file-name completion on w32 Date: Thu, 20 Apr 2006 16:22:39 +0200 Message-ID: <4447992F.6040102@student.lu.se> 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 1145543005 14459 80.91.229.2 (20 Apr 2006 14:23:25 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 20 Apr 2006 14:23:25 +0000 (UTC) Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Apr 20 16:23:19 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 1FWa3b-0007bb-UD for ged-emacs-devel@m.gmane.org; Thu, 20 Apr 2006 16:22:56 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FWa3b-0004wC-EW for ged-emacs-devel@m.gmane.org; Thu, 20 Apr 2006 10:22:55 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1FWa3P-0004vV-9c for emacs-devel@gnu.org; Thu, 20 Apr 2006 10:22:43 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1FWa3N-0004uu-Dp for emacs-devel@gnu.org; Thu, 20 Apr 2006 10:22:42 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FWa3N-0004ur-A1 for emacs-devel@gnu.org; Thu, 20 Apr 2006 10:22:41 -0400 Original-Received: from [81.228.8.83] (helo=pne-smtpout1-sn2.hy.skanova.net) by monty-python.gnu.org with esmtp (Exim 4.52) id 1FWa4i-0001us-Ni for emacs-devel@gnu.org; Thu, 20 Apr 2006 10:24:04 -0400 Original-Received: from [192.168.123.121] (83.249.218.244) by pne-smtpout1-sn2.hy.skanova.net (7.2.070) id 44449707000B9CCB for emacs-devel@gnu.org; Thu, 20 Apr 2006 16:22:39 +0200 User-Agent: Thunderbird 1.5 (Windows/20051201) Original-To: Emacs Devel 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:53139 Archived-At: Eval this code and try to complete in a directory with only one file, but not matching the pattern (ie temp.tmp): (defcustom nxhtml-image-completion-pattern "\\.\\(?:png\\|jpg\\|jpeg\\|gif\\)$" "Pattern for matching image URLs in completion." :type 'regexp) (defun nxhtml-image-url-predicate(url) (setq nxhtml-predicate-error nil) (if (or (file-directory-p url) (string-match nxhtml-image-completion-pattern url)) t (setq nxhtml-predicate-error "Does not match image file name pattern.") nil)) (read-file-name "File: " nil "" nil "" 'nxhtml-image-url-predicate) For me this completes to the file temp.tmp. This is on w32: GNU Emacs 22.0.50.1 (i386-mingw-nt5.0.2195) of 2006-04-15 I do not know if this bug affects other platforms too, please test.