From: Lars Ingebrigtsen Date: Tue, 4 May 2021 07:57:30 +0000 (+0200) Subject: Ensure updating the animated image in all windows X-Git-Tag: emacs-28.0.90~2625 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=4ba9024d44566e47d9624e3316eab7b936fd141f;p=emacs.git Ensure updating the animated image in all windows * lisp/image.el (image-show-frame): Simplify the window update -- pass in the buffer, which is a noop if the buffer isn't displayed. --- diff --git a/lisp/image.el b/lisp/image.el index 643f9ddf834..ee152940311 100644 --- a/lisp/image.el +++ b/lisp/image.el @@ -875,9 +875,7 @@ do not check N is within the range of frames present in the image." (setq n (min n (1- (car (plist-get (cdr image) :animate-multi-frame-data))))))) (plist-put (cdr image) :index n) - (when-let ((window - (get-buffer-window (plist-get (cdr image) :animate-buffer) t))) - (force-window-update window))) + (force-window-update (plist-get (cdr image) :animate-buffer))) (defun image-animate-get-speed (image) "Return the speed factor for animating IMAGE."