Commit 1fa1f318 authored by Lars Ingebrigtsen's avatar Lars Ingebrigtsen
Browse files

Speed up animation of non-displayed buffers

* lisp/image.el (image-show-frame): Don't force an update if the
buffer with the animation isn't in a window (bug#47895).  Also
just update the window in question.
parent 4aa4a8f9
Pipeline #10611 failed with stages
in 21 minutes and 57 seconds
......@@ -875,7 +875,9 @@ do not check N is within the range of frames present in the image."
(setq n (min n (1- (car (plist-get (cdr image)
(plist-put (cdr image) :index n)
(when-let ((window
(get-buffer-window (plist-get (cdr image) :animate-buffer) t)))
(force-window-update window)))
(defun image-animate-get-speed (image)
"Return the speed factor for animating IMAGE."
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment