dired-omit-mode may not be defined in dired-jump

* lisp/dired.el (dired-jump): dired-omit-mode is in dired-x, so it
may not be defined in dired.
This commit is contained in:
Lars Ingebrigtsen 2020-09-12 15:01:32 +02:00
parent 4c3f3bf256
commit 227f93abcc

View file

@ -4528,7 +4528,7 @@ Interactively with prefix argument, read FILE-NAME."
(dired-insert-subdir (file-name-directory file))
(dired-goto-file file))
;; Toggle omitting, if it is on, and try again.
(when dired-omit-mode
(when (bound-and-true-p dired-omit-mode)
(dired-omit-mode)
(dired-goto-file file)))))))))