From edfc7f2558fc3a52e645cd2fdbe0f6566ac6ecbc Mon Sep 17 00:00:00 2001 From: Andreas Schwab Date: Mon, 24 Aug 1998 10:21:51 +0000 Subject: [PATCH] (file-name-invalid-regexp): Fix regex for ms-dos without long file names. --- lisp/files.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)) -- 2.39.2