Mercurial > emacs
changeset 22480:a85ad07a6e4b
(file-name-invalid-regexp): Add control characters for DOS/Windows
as they are disallowed by the filesystem there.
author | Eli Zaretskii <eliz@gnu.org> |
---|---|
date | Sun, 14 Jun 1998 15:34:02 +0000 |
parents | 1bc7dcbcb851 |
children | c19803db4a93 |
files | lisp/files.el |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/lisp/files.el Sun Jun 14 08:37:52 1998 +0000 +++ b/lisp/files.el Sun Jun 14 15:34:02 1998 +0000 @@ -174,11 +174,12 @@ (cond ((and (eq system-type 'ms-dos) (not (msdos-long-file-names))) (concat "\\(^\\([A-z]:\\)?/?.*:\\)\\|" ; colon except after drive "[+, ;=|<>\"?*]\\|\\[\\|\\]\\|" ; invalid characters + "[\000-\031]|" ; control characters "\\(/\\.\\.?[^/]\\)\\|" ; leading dots "\\(/[^/.]+\\.[^/.]*\\.\\)")) ; more than a single dot ((memq system-type '(ms-dos windows-nt)) (concat "\\(^\\([A-z]:\\)?/?.*:\\)\\|" ; colon except after drive - "[|<>\"?*]")) ; invalid characters + "[|<>\"?*\000-\031]")) ; invalid characters (t "[\000]")) "Regexp recognizing file names which aren't allowed by the filesystem.")