]> git.eshelyaron.com Git - emacs.git/commitdiff
(file-relative-name): Recognize "c:/foo" as absolute
authorKai Großjohann <kgrossjo@eu.uu.net>
Fri, 25 Apr 2003 14:14:31 +0000 (14:14 +0000)
committerKai Großjohann <kgrossjo@eu.uu.net>
Fri, 25 Apr 2003 14:14:31 +0000 (14:14 +0000)
file name.  Tiny change from David PONCE <david.ponce@wanadoo.fr>.

lisp/ChangeLog
lisp/files.el

index 70e6c018f11bb370d051d31d1c7ecf6d960b8331..2cce2d1f7dc5ac79e0e0632b1639970fd66ef6ed 100644 (file)
@@ -1,3 +1,8 @@
+2003-04-25  Kai Gro\e,A_\e(Bjohann  <kai.grossjohann@gmx.net>
+
+       * files.el (file-relative-name): Recognize "c:/foo" as absolute
+       file name.  Tiny change from David PONCE <david.ponce@wanadoo.fr>.
+
 2003-04-24  Sam Steingold  <sds@gnu.org>
 
        * calendar/diary-lib.el (fancy-diary-display-mode): Bind "q" to
index c18cc2e20acb4d0e65a4d45cfd521056ccf6c41a..48e8dda0e746be64c21ddbacc835dd1c0a6f8b71 100644 (file)
@@ -2909,9 +2909,9 @@ on a DOS/Windows machine, it returns FILENAME on expanded form."
                 (string-match re directory)
                 (substring directory 0 (match-end 0))))))))
          filename
-        (unless (eq (aref filename 0) ?/)
+        (unless (file-name-absolute-p filename)
          (setq filename (concat "/" filename)))
-        (unless (eq (aref directory 0) ?/)
+        (unless (file-name-absolute-p directory)
          (setq directory (concat "/" directory)))
         (let ((ancestor ".")
              (filename-dir (file-name-as-directory filename)))