]> git.eshelyaron.com Git - emacs.git/commitdiff
dired-omit-mode may not be defined in dired-jump
authorLars Ingebrigtsen <larsi@gnus.org>
Sat, 12 Sep 2020 13:01:32 +0000 (15:01 +0200)
committerLars Ingebrigtsen <larsi@gnus.org>
Sat, 12 Sep 2020 13:01:32 +0000 (15:01 +0200)
* lisp/dired.el (dired-jump): dired-omit-mode is in dired-x, so it
may not be defined in dired.

lisp/dired.el

index 0d7ec2fa87341b28cc3e602b4ed4118aa4b30849..6e7b88f0199a692317fd874adba1851497980133 100644 (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)))))))))