]> git.eshelyaron.com Git - emacs.git/commitdiff
(convert-standard-filename): Convert directory
authorAndrew Innes <andrewi@gnu.org>
Fri, 5 Mar 1999 16:15:58 +0000 (16:15 +0000)
committerAndrew Innes <andrewi@gnu.org>
Fri, 5 Mar 1999 16:15:58 +0000 (16:15 +0000)
separators to Windows format.

lisp/w32-fns.el

index a35e38fb50d57a888aeed8f5ea5da9163ee4c29b..d573e6e88c0742f7758f83ff4eacc5ad5932b99f 100644 (file)
@@ -233,6 +233,10 @@ with a definition that really does change some file names."
     (while (string-match "[?*:<>|\"\000-\037]" name start)
       (aset name (match-beginning 0) ?!)
       (setq start (match-end 0)))
+    ;; convert directory separators to Windows format
+    (while (string-match "/" name start)
+      (aset name (match-beginning 0) ?\\)
+      (setq start (match-end 0)))
     name))
 
 ;;; Fix interface to (X-specific) mouse.el