]> git.eshelyaron.com Git - emacs.git/commit
image-dired-show-all-from-dir: Reuse dired's default-directory
authorSacha Chua <sacha@sachachua.com>
Thu, 2 Jan 2025 19:52:28 +0000 (14:52 -0500)
committerEshel Yaron <me@eshelyaron.com>
Wed, 8 Jan 2025 08:52:52 +0000 (09:52 +0100)
commit81113189af7edb76f6ea71e568df0e9b1192d167
treef852286529e7513732d74c85ba9648f773a5df8e
parenta9ece0191348d500baafee9eaa60ef6a7d71648a
image-dired-show-all-from-dir: Reuse dired's default-directory

* lisp/image/image-dired.el (image-dired-show-all-from-dir): Delegate
figuring out default-directory to dired.  This handles the case where
image-dired is called with a cons cell that has a directory in the car
and a list of files in the cdr, which dired can handle, and therefore
allows image-dired-show-all-from-dir to show an arbitrary list of
images.  It also means that image-dired-show-all-from-dir can handle
wildcards.
Ref: https://lists.gnu.org/r/emacs-devel/2025-01/msg00048.html

(cherry picked from commit d4503ccc2769035184e474542fc6c1df7e908ae0)
lisp/image/image-dired.el