diff options
| author | Andrew Innes | 1999-05-02 09:45:17 +0000 |
|---|---|---|
| committer | Andrew Innes | 1999-05-02 09:45:17 +0000 |
| commit | 105adfb54f0ea72314c4bc40dfe531902f36a68e (patch) | |
| tree | 8256602978d5e9cb1c1c977020afb0001753b224 | |
| parent | f8a1023408264cfdec0b568b7d14084f4f60abfd (diff) | |
| download | emacs-105adfb54f0ea72314c4bc40dfe531902f36a68e.tar.gz emacs-105adfb54f0ea72314c4bc40dfe531902f36a68e.zip | |
(convert-standard-filename): Only convert directory
separators to backslash if the interactive shell is one of the
standard Windows shells that has DOS semantics.
| -rw-r--r-- | lisp/w32-fns.el | 10 |
1 files changed, 6 insertions, 4 deletions
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." | |||
| 254 | (aset name (match-beginning 0) ?!) | 254 | (aset name (match-beginning 0) ?!) |
| 255 | (setq start (match-end 0))) | 255 | (setq start (match-end 0))) |
| 256 | ;; convert directory separators to Windows format | 256 | ;; convert directory separators to Windows format |
| 257 | (while (string-match "/" name start) | 257 | ;; (but only if the shell in use requires it) |
| 258 | (aset name (match-beginning 0) ?\\) | 258 | (if (w32-shell-dos-semantics) |
| 259 | (setq start (match-end 0))) | 259 | (while (string-match "/" name start) |
| 260 | name)) | 260 | (aset name (match-beginning 0) ?\\) |
| 261 | (setq start (match-end 0)))) | ||
| 262 | name)) | ||
| 261 | 263 | ||
| 262 | ;;; Fix interface to (X-specific) mouse.el | 264 | ;;; Fix interface to (X-specific) mouse.el |
| 263 | (defun x-set-selection (type data) | 265 | (defun x-set-selection (type data) |