From 9fec778c072d7f6869dfc035243ed285bb0ed15a Mon Sep 17 00:00:00 2001 From: Michael Albinus Date: Fri, 28 Jun 2019 14:03:58 +0200 Subject: [PATCH] * lisp/gnus/gnus-art.el (gnus-article-stop-animations): Use `cancel-function-timers'. --- lisp/gnus/gnus-art.el | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/lisp/gnus/gnus-art.el b/lisp/gnus/gnus-art.el index d826faca5bd..601ea00810d 100644 --- a/lisp/gnus/gnus-art.el +++ b/lisp/gnus/gnus-art.el @@ -4559,10 +4559,7 @@ commands: (current-buffer)))))) (defun gnus-article-stop-animations () - (dolist (timer (and (boundp 'timer-list) - timer-list)) - (when (eq (timer--function timer) 'image-animate-timeout) - (cancel-timer timer)))) + (cancel-function-timers 'image-animate-timeout)) (defun gnus-stop-downloads () (when (boundp 'url-queue) -- 2.39.2