aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lisp/dired-x.el11
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."