From: Andreas Schwab Date: Mon, 24 Aug 1998 10:21:51 +0000 (+0000) Subject: (file-name-invalid-regexp): Fix regex for ms-dos without long file names. X-Git-Tag: emacs-20.4~1855 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=edfc7f2558fc3a52e645cd2fdbe0f6566ac6ecbc;p=emacs.git (file-name-invalid-regexp): Fix regex for ms-dos without long file names. --- diff --git a/lisp/files.el b/lisp/files.el index d3c8629759d..279431ace4a 100644 --- a/lisp/files.el +++ b/lisp/files.el @@ -174,7 +174,7 @@ If the buffer is visiting a new file, the value is nil.") (cond ((and (eq system-type 'ms-dos) (not (msdos-long-file-names))) (concat "^\\([^A-Z[-`a-z]\\|..+\\)?:\\|" ; colon except after drive "[+, ;=|<>\"?*]\\|\\[\\|\\]\\|" ; invalid characters - "[\000-\031]|" ; control characters + "[\000-\031]\\|" ; control characters "\\(/\\.\\.?[^/]\\)\\|" ; leading dots "\\(/[^/.]+\\.[^/.]*\\.\\)")) ; more than a single dot ((memq system-type '(ms-dos windows-nt))