mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2024-11-24 07:20:37 +00:00
(abbreviate-file-name): Handle drive letters on windows-nt as on ms-dos.
This commit is contained in:
parent
4a091f2a34
commit
c32d49e850
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user