diff options
author | Richard M. Stallman <rms@gnu.org> | 1996-11-10 23:41:13 +0000 |
---|---|---|
committer | Richard M. Stallman <rms@gnu.org> | 1996-11-10 23:41:13 +0000 |
commit | 7e90bcf5076ecc08903ba9763604f7010d3cc5da (patch) | |
tree | 276cf7274fd84fa3b88c51dce02cf882e363dd32 | |
parent | 9a656d196af1e01fc3f95d5c83d0df69b559c0ce (diff) | |
download | emacs-7e90bcf5076ecc08903ba9763604f7010d3cc5da.tar.gz |
(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." (dired dir)) (if file (or (dired-goto-file file) - ;; Toggle omitting, if necessary, and try again. - (progn - (dired-omit-toggle t) - (dired-goto-file file)) ;; refresh and try again (progn (dired-insert-subdir (file-name-directory file)) - (dired-goto-file file))))))) + (dired-goto-file file)) + ;; Toggle omitting, if it is on, and try again. + (if dired-omit-files-p + (progn + (dired-omit-toggle) + (dired-goto-file file)))))))) (defun dired-jump-other-window () "Like \\[dired-jump] (dired-jump) but in other window." |