Changeset 4140 for trunk/lisp/files.el
- Timestamp:
- 08/10/06 11:19:54 (2 years ago)
- Files:
-
- trunk/lisp/files.el (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/lisp/files.el
r4131 r4140 541 541 This function's standard definition is trivial; it just returns 542 542 the argument. However, on Windows and DOS, replace invalid 543 characters. On DOS, make sure to obey the 8.3 limitations. On544 Windows, turn Cygwin names into native names, and also turn 545 slashes into backslashes if the shell requires it (see543 characters. On DOS, make sure to obey the 8.3 limitations. 544 In the native Windows build, turn Cygwin names into native names, 545 and also turn slashes into backslashes if the shell requires it (see 546 546 `w32-shell-dos-semantics'). 547 547 548 548 See Info node `(elisp)Standard File Names' for more details." 549 filename) 549 (if (eq system-type 'cygwin) 550 (let ((name (copy-sequence filename)) 551 (start 0)) 552 ;; Replace invalid filename characters with ! 553 (while (string-match "[?*:<>|\"\000-\037]" name start) 554 (aset name (match-beginning 0) ?!) 555 (setq start (match-end 0))) 556 name) 557 filename)) 550 558 551 559 (defun read-directory-name (prompt &optional dir default-dirname mustmatch initial) … … 4369 4377 ;; Make sure auto-save file names don't contain characters 4370 4378 ;; invalid for the underlying filesystem. 4371 (if (and (memq system-type '(ms-dos windows-nt ))4379 (if (and (memq system-type '(ms-dos windows-nt cygwin)) 4372 4380 ;; Don't modify remote (ange-ftp) filenames 4373 4381 (not (string-match "^/\\w+@[-A-Za-z0-9._]+:" result))) … … 4404 4412 ((file-writable-p "/var/tmp/") "/var/tmp/") 4405 4413 ("~/"))))) 4406 (if (and (memq system-type '(ms-dos windows-nt ))4414 (if (and (memq system-type '(ms-dos windows-nt cygwin)) 4407 4415 ;; Don't modify remote (ange-ftp) filenames 4408 4416 (not (string-match "^/\\w+@[-A-Za-z0-9._]+:" fname)))
