comparison lisp/dos-w32.el @ 24913:76764b2157af

(untranslated-canonical-name): Avoid expanding ange-ftp file names, which might force ange-ftp to prompt for a password.
author Andrew Innes <andrewi@gnu.org>
date Thu, 01 Jul 1999 19:42:42 +0000
parents 7de5cc79a8b4
children f1d437596538
comparison
equal deleted inserted replaced
24912:15cba2bd779a 24913:76764b2157af
206 (char-to-string (+ (- char ?A) ?a)) 206 (char-to-string (+ (- char ?A) ?a))
207 (char-to-string char))) 207 (char-to-string char)))
208 filename nil)) 208 filename nil))
209 ;; Use expand-file-name to canonicalize directory separators, except 209 ;; Use expand-file-name to canonicalize directory separators, except
210 ;; with bare drive letters (which would have the cwd appended). 210 ;; with bare drive letters (which would have the cwd appended).
211 (if (string-match "^.:$" name) 211 ;; Avoid expanding names that could trigger ange-ftp to prompt
212 ;; for passwords, though.
213 (if (or (string-match "^.:$" name)
214 (string-match "^/[^/:]+:" name))
212 name 215 name
213 (expand-file-name name))) 216 (expand-file-name name)))
214 filename)) 217 filename))
215 218
216 (defun untranslated-file-p (filename) 219 (defun untranslated-file-p (filename)