From: Stefan Kangas Date: Thu, 4 Nov 2021 04:10:28 +0000 (+0100) Subject: image-dired: Set default-directory in thumbnail buffer X-Git-Tag: emacs-29.0.90~3671^2~257 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=e4c6673be6f3d5e63e0759bb78f0fb3721d8f7d9;p=emacs.git image-dired: Set default-directory in thumbnail buffer * lisp/image-dired.el (image-dired-show-all-from-dir): Set default-directory. This fixes e.g. 'dired-jump'. --- diff --git a/lisp/image-dired.el b/lisp/image-dired.el index 6ba11a2b3fb..99b5dad3a19 100644 --- a/lisp/image-dired.el +++ b/lisp/image-dired.el @@ -1092,6 +1092,7 @@ never ask for confirmation." image-dired-show-all-from-dir-max-files)))) (image-dired-display-thumbs) (pop-to-buffer image-dired-thumbnail-buffer) + (setq default-directory dir) (image-dired-unmark-all-marks)) (t (message "Image-Dired canceled")))))