unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Still bugs in read-file-name completion on w32
@ 2006-04-20 14:22 Lennart Borgman
  2006-04-21 11:26 ` Mathias Dahl
  0 siblings, 1 reply; 5+ messages in thread
From: Lennart Borgman @ 2006-04-20 14:22 UTC (permalink / raw)


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.

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2006-04-25 13:56 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-04-20 14:22 Still bugs in read-file-name completion on w32 Lennart Borgman
2006-04-21 11:26 ` Mathias Dahl
2006-04-21 13:33   ` Jason Rumney
2006-04-21 17:20     ` Stefan Monnier
2006-04-25 13:56       ` Mathias Dahl

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).