]> git.eshelyaron.com Git - emacs.git/commitdiff
gnus-art.el (gnus-article-stop-animations): Use gnus-timer--function that is an alias...
authorKatsumi Yamaoka <yamaoka@jpl.org>
Thu, 13 Sep 2012 11:14:30 +0000 (11:14 +0000)
committerKatsumi Yamaoka <yamaoka@jpl.org>
Thu, 13 Sep 2012 11:14:30 +0000 (11:14 +0000)
lisp/gnus/ChangeLog
lisp/gnus/gnus-art.el
lisp/gnus/gnus-util.el

index 3f69a84db880b4a4d5fe09e4d07a23363ca819d9..69f0025b5246c4e02defd61a9377765073418426 100644 (file)
@@ -1,3 +1,9 @@
+2012-09-13  Katsumi Yamaoka  <yamaoka@jpl.org>
+
+       * gnus-util.el (gnus-timer--function): New function.
+
+       * gnus-art.el (gnus-article-stop-animations): Use it.
+
 2012-09-13  Paul Eggert  <eggert@cs.ucla.edu>
 
        Fix glitches caused by addition of psec to timers.
index 4dc004f04d476d4aac93dceb44645628ff72ee9a..7dcbd61316f1c61b29b0d15710a78bd4dfb727e2 100644 (file)
@@ -4554,7 +4554,7 @@ commands:
 (defun gnus-article-stop-animations ()
   (dolist (timer (and (boundp 'timer-list)
                      timer-list))
-    (when (eq (timer--function timer) 'image-animate-timeout)
+    (when (eq (gnus-timer--function timer) 'image-animate-timeout)
       (cancel-timer timer))))
 
 (defun gnus-stop-downloads ()
index 4c5eabab723845d8a52e22961dc79d07278dcbf4..f5e1077f8c462b755e1411b1d4c208f2f83bc7ec 100644 (file)
@@ -1964,6 +1964,11 @@ definitions to shadow the loaded ones for use in file byte-compilation."
 (defun gnus-bound-and-true-p (sym)
   (and (boundp sym) (symbol-value sym)))
 
+(if (fboundp 'timer--function)
+    (defalias 'gnus-timer--function 'timer--function)
+  (defun gnus-timer--function (timer)
+    (elt timer 5)))
+
 (provide 'gnus-util)
 
 ;;; gnus-util.el ends here