diff options
| author | Richard M. Stallman | 1993-11-22 09:29:51 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1993-11-22 09:29:51 +0000 |
| commit | 847aabcec25f9eedd8729c2afc2f5a8dc84736f3 (patch) | |
| tree | 041e77189a7fcda8f34f95e42e2a3f799b8d13b9 | |
| parent | f45da5d14b243bf8499416217534bf4d61fa485d (diff) | |
| download | emacs-847aabcec25f9eedd8729c2afc2f5a8dc84736f3.tar.gz emacs-847aabcec25f9eedd8729c2afc2f5a8dc84736f3.zip | |
(dired-readin-insert): Expand default-directory and dirname
before comparing them.
(dired-internal-noselect): Set default-directory to abbreviated name.
| -rw-r--r-- | lisp/dired.el | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/lisp/dired.el b/lisp/dired.el index 2a197ca7a8e..6eb3b284cc4 100644 --- a/lisp/dired.el +++ b/lisp/dired.el | |||
| @@ -398,9 +398,11 @@ If DIRNAME is already in a dired buffer, that buffer is used without refresh." | |||
| 398 | (if switches ; ... but new switches | 398 | (if switches ; ... but new switches |
| 399 | (dired-sort-other switches)) ; this calls dired-revert | 399 | (dired-sort-other switches)) ; this calls dired-revert |
| 400 | ;; Else a new buffer | 400 | ;; Else a new buffer |
| 401 | (setq default-directory (if (file-directory-p dirname) | 401 | (setq default-directory |
| 402 | dirname | 402 | (abbreviate-file-name |
| 403 | (file-name-directory dirname))) | 403 | (if (file-directory-p dirname) |
| 404 | dirname | ||
| 405 | (file-name-directory dirname)))) | ||
| 404 | (or switches (setq switches dired-listing-switches)) | 406 | (or switches (setq switches dired-listing-switches)) |
| 405 | (dired-mode dirname switches) | 407 | (dired-mode dirname switches) |
| 406 | ;; default-directory and dired-actual-switches are set now | 408 | ;; default-directory and dired-actual-switches are set now |