diff options
| author | Richard M. Stallman | 1996-11-10 23:41:13 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1996-11-10 23:41:13 +0000 |
| commit | 7e90bcf5076ecc08903ba9763604f7010d3cc5da (patch) | |
| tree | 276cf7274fd84fa3b88c51dce02cf882e363dd32 | |
| parent | 9a656d196af1e01fc3f95d5c83d0df69b559c0ce (diff) | |
| download | emacs-7e90bcf5076ecc08903ba9763604f7010d3cc5da.tar.gz emacs-7e90bcf5076ecc08903ba9763604f7010d3cc5da.zip | |
(dired-jump): Never turn omitting *on*.
Refresh the line *before* turning omitting off.
| -rw-r--r-- | lisp/dired-x.el | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/lisp/dired-x.el b/lisp/dired-x.el index 2f6cb72623b..b626b3aade5 100644 --- a/lisp/dired-x.el +++ b/lisp/dired-x.el | |||
| @@ -425,14 +425,15 @@ buffer and try again." | |||
| 425 | (dired dir)) | 425 | (dired dir)) |
| 426 | (if file | 426 | (if file |
| 427 | (or (dired-goto-file file) | 427 | (or (dired-goto-file file) |
| 428 | ;; Toggle omitting, if necessary, and try again. | ||
| 429 | (progn | ||
| 430 | (dired-omit-toggle t) | ||
| 431 | (dired-goto-file file)) | ||
| 432 | ;; refresh and try again | 428 | ;; refresh and try again |
| 433 | (progn | 429 | (progn |
| 434 | (dired-insert-subdir (file-name-directory file)) | 430 | (dired-insert-subdir (file-name-directory file)) |
| 435 | (dired-goto-file file))))))) | 431 | (dired-goto-file file)) |
| 432 | ;; Toggle omitting, if it is on, and try again. | ||
| 433 | (if dired-omit-files-p | ||
| 434 | (progn | ||
| 435 | (dired-omit-toggle) | ||
| 436 | (dired-goto-file file)))))))) | ||
| 436 | 437 | ||
| 437 | (defun dired-jump-other-window () | 438 | (defun dired-jump-other-window () |
| 438 | "Like \\[dired-jump] (dired-jump) but in other window." | 439 | "Like \\[dired-jump] (dired-jump) but in other window." |