Function: image--delayed-change-size

image--delayed-change-size is a byte-compiled function defined in image.el.gz.

Signature

(image--delayed-change-size SIZE POSITION)

Source Code

;; Defined in /usr/src/emacs/lisp/image.el.gz
(defun image--delayed-change-size (size position)
  ;; Wait for a bit of idle-time before actually performing the change,
  ;; so as to batch together sequences of closely consecutive size changes.
  ;; `image--change-size' just changes two values in a plist.  The actual
  ;; image resizing happens later during redisplay.  So if those
  ;; consecutive calls happen without any redisplay between them,
  ;; the costly operation of image resizing should happen only once.
  (run-with-idle-timer 0.3 nil #'image--change-size size position))