From: Stefan Kangas Date: Tue, 27 Sep 2022 21:26:07 +0000 (+0200) Subject: Make image-dired-dired-toggle-marked-thumbs faster X-Git-Tag: emacs-29.0.90~1856^2~181 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=9e0c21ea73e41916322cbeef5751400c5353bd5a;p=emacs.git 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. --- 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))