(dired-jump): Never turn omitting *on*.

Refresh the line *before* turning omitting off.
This commit is contained in:
Richard M. Stallman 1996-11-10 23:41:13 +00:00
parent 9a656d196a
commit 7e90bcf507

View file

@ -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."