summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard M. Stallman <rms@gnu.org>1996-11-10 23:41:13 +0000
committerRichard M. Stallman <rms@gnu.org>1996-11-10 23:41:13 +0000
commit5a7a97397d46684e2348ae93134f378e09289030 (patch)
tree29929b134886f2f84e4dbbd3a2096e8e52d6fe76
parentaacde083906fd37983caf387688142a1f91f899e (diff)
downloademacs-5a7a97397d46684e2348ae93134f378e09289030.tar.gz
(dired-jump): Never turn omitting *on*.
Refresh the line *before* turning omitting off.
-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."
(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."