From: Richard M. Stallman Date: Sun, 10 Nov 1996 23:41:13 +0000 (+0000) Subject: (dired-jump): Never turn omitting *on*. X-Git-Tag: emacs-20.1~3386 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=7e90bcf5076ecc08903ba9763604f7010d3cc5da;p=emacs.git (dired-jump): Never turn omitting *on*. Refresh the line *before* turning omitting off. --- 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."