From 9e0c21ea73e41916322cbeef5751400c5353bd5a Mon Sep 17 00:00:00 2001 From: Stefan Kangas Date: Tue, 27 Sep 2022 23:26:07 +0200 Subject: [PATCH] Make image-dired-dired-toggle-marked-thumbs faster * lisp/image/image-dired-dired.el (image-dired-dired-toggle-marked-thumbs): Don't show progress, since it makes things slower. --- lisp/image/image-dired-dired.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lisp/image/image-dired-dired.el b/lisp/image/image-dired-dired.el index 94367b566e4..d03c1629da8 100644 --- a/lisp/image/image-dired-dired.el +++ b/lisp/image/image-dired-dired.el @@ -83,8 +83,8 @@ previous -ARG, if ARG<0) files." if (overlay-get ov 'put-image) return ov)) (overlay-put overlay 'image-file image-file) (overlay-put overlay 'thumb-file thumb-file))))) - arg ; Show or hide image on ARG next files. - 'show-progress) ; Update dired display after each image is updated. + ;; Show or hide thumbnail on ARG next files. + arg) (add-hook 'dired-after-readin-hook 'image-dired-dired-after-readin-hook nil t)) -- 2.39.2