]> git.eshelyaron.com Git - emacs.git/commitdiff
* lisp/gnus/gnus-art.el (gnus-article-stop-animations):
authorMichael Albinus <michael.albinus@gmx.de>
Fri, 28 Jun 2019 12:03:58 +0000 (14:03 +0200)
committerMichael Albinus <michael.albinus@gmx.de>
Fri, 28 Jun 2019 12:03:58 +0000 (14:03 +0200)
Use `cancel-function-timers'.

lisp/gnus/gnus-art.el

index d826faca5bd92fa04837713376070d631d997416..601ea00810d26633c7a7609bf3d1319bd393d812 100644 (file)
@@ -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)