mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-02-22 12:57:34 +00:00
(dired-jump): Never turn omitting *on*.
Refresh the line *before* turning omitting off.
This commit is contained in:
parent
9a656d196a
commit
7e90bcf507
1 changed files with 6 additions and 5 deletions
|
|
@ -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."
|
||||
|
|
|
|||
Loading…
Reference in a new issue