]> git.eshelyaron.com Git - emacs.git/commitdiff
(cd-absolute): Don't abbreviate-file-name (bug#4599).
authorStefan Monnier <monnier@iro.umontreal.ca>
Thu, 1 Oct 2009 03:34:04 +0000 (03:34 +0000)
committerStefan Monnier <monnier@iro.umontreal.ca>
Thu, 1 Oct 2009 03:34:04 +0000 (03:34 +0000)
lisp/ChangeLog
lisp/files.el

index a4413bcbf965d5a153c6f48ac2f6b47ff0f7142d..03566e96c286d308e1292582fbf672e2a469d059 100644 (file)
@@ -1,5 +1,7 @@
 2009-10-01  Stefan Monnier  <monnier@iro.umontreal.ca>
 
+       * files.el (cd-absolute): Don't abbreviate-file-name (bug#4599).
+
        * vc-dispatcher.el (vc-resynch-window): Don't revert a buffer which
        has no associated file.
        (vc-resynch-buffer): Use vc-dir-buffers.
index 3fde2812f0ca72609c59b21b338d11e3f58694d4..a7eac5fb63e5e9c1f3c661b5c48fc9e562ccac3e 100644 (file)
@@ -648,7 +648,12 @@ Directories are separated by occurrences of `path-separator'
   ;; Put the name into directory syntax now,
   ;; because otherwise expand-file-name may give some bad results.
   (setq dir (file-name-as-directory dir))
-  (setq dir (abbreviate-file-name (expand-file-name dir)))
+  ;; We used to additionally call abbreviate-file-name here, for an
+  ;; unknown reason.  Problem is that most buffers are setup
+  ;; without going through cd-absolute and don't call
+  ;; abbreviate-file-name on their default-directory, so the few that
+  ;; do end up using a superficially different directory.
+  (setq dir (expand-file-name dir))
   (if (not (file-directory-p dir))
       (if (file-exists-p dir)
          (error "%s is not a directory" dir)