]> code.delx.au - gnu-emacs/blobdiff - lisp/w32-fns.el
(ps-mule-begin-job): Redo this change "if
[gnu-emacs] / lisp / w32-fns.el
index 1e12f177f87e56343ca20d508fde57e26862ac9c..580bea0631ad109719d441385c965ec28b10d464 100644 (file)
@@ -254,10 +254,12 @@ with a definition that really does change some file names."
       (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))
+    ;; (but only if the shell in use requires it)
+    (if (w32-shell-dos-semantics)
+       (while (string-match "/" name start)
+         (aset name (match-beginning 0) ?\\)
+         (setq start (match-end 0))))
+      name))
 
 ;;; Fix interface to (X-specific) mouse.el
 (defun x-set-selection (type data)