From: Andrew Innes Date: Sun, 2 May 1999 09:45:17 +0000 (+0000) Subject: (convert-standard-filename): Only convert directory X-Git-Tag: emacs-20.4~288 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=105adfb54f0ea72314c4bc40dfe531902f36a68e;p=emacs.git (convert-standard-filename): Only convert directory separators to backslash if the interactive shell is one of the standard Windows shells that has DOS semantics. --- diff --git a/lisp/w32-fns.el b/lisp/w32-fns.el index 1e12f177f87..580bea0631a 100644 --- a/lisp/w32-fns.el +++ b/lisp/w32-fns.el @@ -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)