aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEli Zaretskii2015-12-25 18:37:31 +0200
committerEli Zaretskii2015-12-25 18:37:31 +0200
commitb6ad4608be82dd4c15deb33c6c969977425cecb2 (patch)
treee0644a47b17787f4e366f37dbe9effcb25fcd70a
parente59b2ee8cdfe75785f3e49acd9a03db784114763 (diff)
downloademacs-b6ad4608be82dd4c15deb33c6c969977425cecb2.tar.gz
emacs-b6ad4608be82dd4c15deb33c6c969977425cecb2.zip
Make sure *scratch* etc. use forward slashes in its default-directory
* lisp/startup.el (normal-top-level): On MS-Windows, convert backslashes to forward slashes while decoding default-directory of the initially-created buffers.
-rw-r--r--lisp/startup.el6
1 files changed, 5 insertions, 1 deletions
diff --git a/lisp/startup.el b/lisp/startup.el
index 13463107d2e..a31d35544a4 100644
--- a/lisp/startup.el
+++ b/lisp/startup.el
@@ -544,7 +544,11 @@ It is the default value of the variable `top-level'."
544 (set-buffer elt) 544 (set-buffer elt)
545 (if default-directory 545 (if default-directory
546 (setq default-directory 546 (setq default-directory
547 (decode-coding-string default-directory coding t))))) 547 (if (eq system-type 'windows-nt)
548 ;; Convert backslashes to forward slashes.
549 (expand-file-name
550 (decode-coding-string default-directory coding t))
551 (decode-coding-string default-directory coding t))))))
548 552
549 ;; Decode all the important variables and directory lists, now 553 ;; Decode all the important variables and directory lists, now
550 ;; that we know the locale's encoding. This is because the 554 ;; that we know the locale's encoding. This is because the