mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-26 15:21:51 -08:00
(file-name-invalid-regexp): Fix regex for ms-dos without long file names.
This commit is contained in:
parent
243538e26b
commit
edfc7f2558
1 changed files with 1 additions and 1 deletions
|
|
@ -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))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue