aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lisp/ChangeLog2
-rw-r--r--lisp/files.el7
2 files changed, 8 insertions, 1 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index a4413bcbf96..03566e96c28 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,5 +1,7 @@
12009-10-01 Stefan Monnier <monnier@iro.umontreal.ca> 12009-10-01 Stefan Monnier <monnier@iro.umontreal.ca>
2 2
3 * files.el (cd-absolute): Don't abbreviate-file-name (bug#4599).
4
3 * vc-dispatcher.el (vc-resynch-window): Don't revert a buffer which 5 * vc-dispatcher.el (vc-resynch-window): Don't revert a buffer which
4 has no associated file. 6 has no associated file.
5 (vc-resynch-buffer): Use vc-dir-buffers. 7 (vc-resynch-buffer): Use vc-dir-buffers.
diff --git a/lisp/files.el b/lisp/files.el
index 3fde2812f0c..a7eac5fb63e 100644
--- a/lisp/files.el
+++ b/lisp/files.el
@@ -648,7 +648,12 @@ Directories are separated by occurrences of `path-separator'
648 ;; Put the name into directory syntax now, 648 ;; Put the name into directory syntax now,
649 ;; because otherwise expand-file-name may give some bad results. 649 ;; because otherwise expand-file-name may give some bad results.
650 (setq dir (file-name-as-directory dir)) 650 (setq dir (file-name-as-directory dir))
651 (setq dir (abbreviate-file-name (expand-file-name dir))) 651 ;; We used to additionally call abbreviate-file-name here, for an
652 ;; unknown reason. Problem is that most buffers are setup
653 ;; without going through cd-absolute and don't call
654 ;; abbreviate-file-name on their default-directory, so the few that
655 ;; do end up using a superficially different directory.
656 (setq dir (expand-file-name dir))
652 (if (not (file-directory-p dir)) 657 (if (not (file-directory-p dir))
653 (if (file-exists-p dir) 658 (if (file-exists-p dir)
654 (error "%s is not a directory" dir) 659 (error "%s is not a directory" dir)