[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Still bugs in read-file-name completion on w32

From: Lennart Borgman
Subject: Still bugs in read-file-name completion on w32
Date: Thu, 20 Apr 2006 16:22:39 +0200
User-agent: Thunderbird 1.5 (Windows/20051201)

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
     "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))
(setq nxhtml-predicate-error "Does not match image file name pattern.")

   (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 (i386-mingw-nt5.0.2195) of 2006-04-15

I do not know if this bug affects other platforms too, please test.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]