From: Eli Zaretskii Date: Fri, 25 Dec 2015 16:37:31 +0000 (+0200) Subject: Make sure *scratch* etc. use forward slashes in its default-directory X-Git-Tag: emacs-25.0.90~385 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=b6ad4608be82dd4c15deb33c6c969977425cecb2;p=emacs.git 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. --- 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'." (set-buffer elt) (if default-directory (setq default-directory - (decode-coding-string default-directory coding t))))) + (if (eq system-type 'windows-nt) + ;; Convert backslashes to forward slashes. + (expand-file-name + (decode-coding-string default-directory coding t)) + (decode-coding-string default-directory coding t)))))) ;; Decode all the important variables and directory lists, now ;; that we know the locale's encoding. This is because the