aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman1994-11-01 05:48:21 +0000
committerRichard M. Stallman1994-11-01 05:48:21 +0000
commitc32d49e8500570ecf6003a19ed31e9dc977ca437 (patch)
tree463dc1e1d25e612d1827450ee09948a6a9fac0d7
parent4a091f2a34d7120dc30617cfc06e83d05a09353d (diff)
downloademacs-c32d49e8500570ecf6003a19ed31e9dc977ca437.tar.gz
emacs-c32d49e8500570ecf6003a19ed31e9dc977ca437.zip
(abbreviate-file-name): Handle drive letters on windows-nt as on ms-dos.
-rw-r--r--lisp/files.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/lisp/files.el b/lisp/files.el
index 06c6950b01c..6037b19435d 100644
--- a/lisp/files.el
+++ b/lisp/files.el
@@ -597,7 +597,8 @@ Type \\[describe-variable] directory-abbrev-alist RET for more information."
597 ;; If the home dir is just /, don't change it. 597 ;; If the home dir is just /, don't change it.
598 (not (and (= (match-end 0) 1) 598 (not (and (= (match-end 0) 1)
599 (= (aref filename 0) ?/))) 599 (= (aref filename 0) ?/)))
600 (not (and (eq system-type 'ms-dos) 600 (not (and (or (eq system-type 'ms-dos)
601 (eq system-type 'windows-nt))
601 (save-match-data 602 (save-match-data
602 (string-match "^[a-zA-Z]:/$" filename))))) 603 (string-match "^[a-zA-Z]:/$" filename)))))
603 (setq filename 604 (setq filename