Commit c32d49e8 authored by Richard M. Stallman's avatar Richard M. Stallman
Browse files

(abbreviate-file-name): Handle drive letters on windows-nt as on ms-dos.

parent 4a091f2a
......@@ -597,7 +597,8 @@ Type \\[describe-variable] directory-abbrev-alist RET for more information."
;; If the home dir is just /, don't change it.
(not (and (= (match-end 0) 1)
(= (aref filename 0) ?/)))
(not (and (eq system-type 'ms-dos)
(not (and (or (eq system-type 'ms-dos)
(eq system-type 'windows-nt))
(save-match-data
(string-match "^[a-zA-Z]:/$" filename)))))
(setq filename
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment