[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] Changes to emacs/lisp/files.el
From: |
Kai Großjohann |
Subject: |
[Emacs-diffs] Changes to emacs/lisp/files.el |
Date: |
Mon, 31 Mar 2003 11:05:50 -0500 |
Index: emacs/lisp/files.el
diff -c emacs/lisp/files.el:1.645 emacs/lisp/files.el:1.646
*** emacs/lisp/files.el:1.645 Sat Mar 29 10:31:07 2003
--- emacs/lisp/files.el Mon Mar 31 11:05:49 2003
***************
*** 2826,2832 ****
This function returns a relative file name which is equivalent to FILENAME
when used with that default directory as the default.
If FILENAME and DIRECTORY lie on different machines or on different drives
! \(DOS/Windows), it returns FILENAME in expanded form."
(save-match-data
(setq directory
(file-name-as-directory (expand-file-name (or directory
--- 2826,2832 ----
This function returns a relative file name which is equivalent to FILENAME
when used with that default directory as the default.
If FILENAME and DIRECTORY lie on different machines or on different drives
! on a DOS/Windows machine, it returns FILENAME on expanded form."
(save-match-data
(setq directory
(file-name-as-directory (expand-file-name (or directory
***************
*** 2836,2863 ****
(hd (find-file-name-handler directory 'file-local-copy)))
(when (and hf (not (get hf 'file-remote-p))) (setq hf nil))
(when (and hd (not (get hd 'file-remote-p))) (setq hd nil))
! (if (and
! ;; Conditions for separate trees
! (or
! ;; Test for different drives on DOS/Windows
! (and
! (memq system-type '(ms-dos cygwin windows-nt))
! (not (string-equal (substring filename 0 2)
! (substring directory 0 2))))
! ;; Test for different remote file handlers
! (not (eq hf hd))
! ;; Test for different remote file system identification
! (and
! hf
! (let ((re (car (rassq hf file-name-handler-alist))))
! (not
! (equal
! (and
! (string-match re filename)
! (substring filename 0 (match-end 0)))
! (and
! (string-match re directory)
! (substring directory 0 (match-end 0)))))))))
filename
(unless (eq (aref filename 0) ?/)
(setq filename (concat "/" filename)))
--- 2836,2862 ----
(hd (find-file-name-handler directory 'file-local-copy)))
(when (and hf (not (get hf 'file-remote-p))) (setq hf nil))
(when (and hd (not (get hd 'file-remote-p))) (setq hd nil))
! (if ;; Conditions for separate trees
! (or
! ;; Test for different drives on DOS/Windows
! (and
! (memq system-type '(ms-dos cygwin windows-nt))
! (not (string-equal (substring filename 0 2)
! (substring directory 0 2))))
! ;; Test for different remote file handlers
! (not (eq hf hd))
! ;; Test for different remote file system identification
! (and
! hf
! (let ((re (car (rassq hf file-name-handler-alist))))
! (not
! (equal
! (and
! (string-match re filename)
! (substring filename 0 (match-end 0)))
! (and
! (string-match re directory)
! (substring directory 0 (match-end 0))))))))
filename
(unless (eq (aref filename 0) ?/)
(setq filename (concat "/" filename)))