Mercurial > emacs
comparison lisp/w32-fns.el @ 55865:ccd8cdf69359
Rework docstring (wording by Eli Zaretskii and Kai Grossjohann).
author | Juanma Barranquero <lekktu@gmail.com> |
---|---|
date | Sun, 30 May 2004 21:21:42 +0000 |
parents | 0d890eccf70f |
children | 6fb026ad601f 4c90ffeb71c5 |
comparison
equal
deleted
inserted
replaced
55864:dc60eb9fbbdc | 55865:ccd8cdf69359 |
---|---|
228 ; (setq source-directory (file-name-as-directory | 228 ; (setq source-directory (file-name-as-directory |
229 ; (expand-file-name ".." exec-directory))))) | 229 ; (expand-file-name ".." exec-directory))))) |
230 | 230 |
231 (defun convert-standard-filename (filename) | 231 (defun convert-standard-filename (filename) |
232 "Convert a standard file's name to something suitable for the current OS. | 232 "Convert a standard file's name to something suitable for the current OS. |
233 This function's standard definition is trivial; it just returns the argument. | 233 This means to guarantee valid names and perhaps to canonicalize |
234 However, on some systems, the function is redefined | 234 certain patterns. |
235 with a definition that really does change some file names." | 235 |
236 On Windows and DOS, replace invalid characters. On DOS, make | |
237 sure to obey the 8.3 limitations. On Windows, turn Cygwin names | |
238 into native names, and also turn slashes into backslashes if the | |
239 shell requires it (see `w32-shell-dos-semantics')." | |
236 (let ((name | 240 (let ((name |
237 (save-match-data | 241 (save-match-data |
238 (if (string-match "\\`/cygdrive/\\([a-zA-Z]\\)/" filename) | 242 (if (string-match "\\`/cygdrive/\\([a-zA-Z]\\)/" filename) |
239 (replace-match "\\1:/" t nil filename) | 243 (replace-match "\\1:/" t nil filename) |
240 (copy-sequence filename)))) | 244 (copy-sequence filename)))) |