diff options
| author | Stefan Monnier | 2009-10-01 03:34:04 +0000 |
|---|---|---|
| committer | Stefan Monnier | 2009-10-01 03:34:04 +0000 |
| commit | 7201bfbb317110daf459bb2d201fbb549e9aa50e (patch) | |
| tree | f30022dd135cdbec057f0706be957bc653c2a3d7 /lisp/files.el | |
| parent | cf885595142fefb8a39fc16827c780225833b692 (diff) | |
| download | emacs-7201bfbb317110daf459bb2d201fbb549e9aa50e.tar.gz emacs-7201bfbb317110daf459bb2d201fbb549e9aa50e.zip | |
(cd-absolute): Don't abbreviate-file-name (bug#4599).
Diffstat (limited to 'lisp/files.el')
| -rw-r--r-- | lisp/files.el | 7 |
1 files changed, 6 insertions, 1 deletions
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) |