aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKatsumi Yamaoka2012-09-13 11:14:30 +0000
committerKatsumi Yamaoka2012-09-13 11:14:30 +0000
commit5e2b4ce123bf042b3b719b1f776cce3e4db7eadf (patch)
treed965718b979098642c5668844c55afa72ef706a6
parent4fa924951b55e6b428e852b62d6c8ef3464ea1dd (diff)
downloademacs-5e2b4ce123bf042b3b719b1f776cce3e4db7eadf.tar.gz
emacs-5e2b4ce123bf042b3b719b1f776cce3e4db7eadf.zip
gnus-art.el (gnus-article-stop-animations): Use gnus-timer--function that is an alias to timer--function
-rw-r--r--lisp/gnus/ChangeLog6
-rw-r--r--lisp/gnus/gnus-art.el2
-rw-r--r--lisp/gnus/gnus-util.el5
3 files changed, 12 insertions, 1 deletions
diff --git a/lisp/gnus/ChangeLog b/lisp/gnus/ChangeLog
index 3f69a84db88..69f0025b524 100644
--- a/lisp/gnus/ChangeLog
+++ b/lisp/gnus/ChangeLog
@@ -1,3 +1,9 @@
12012-09-13 Katsumi Yamaoka <yamaoka@jpl.org>
2
3 * gnus-util.el (gnus-timer--function): New function.
4
5 * gnus-art.el (gnus-article-stop-animations): Use it.
6
12012-09-13 Paul Eggert <eggert@cs.ucla.edu> 72012-09-13 Paul Eggert <eggert@cs.ucla.edu>
2 8
3 Fix glitches caused by addition of psec to timers. 9 Fix glitches caused by addition of psec to timers.
diff --git a/lisp/gnus/gnus-art.el b/lisp/gnus/gnus-art.el
index 4dc004f04d4..7dcbd61316f 100644
--- a/lisp/gnus/gnus-art.el
+++ b/lisp/gnus/gnus-art.el
@@ -4554,7 +4554,7 @@ commands:
4554(defun gnus-article-stop-animations () 4554(defun gnus-article-stop-animations ()
4555 (dolist (timer (and (boundp 'timer-list) 4555 (dolist (timer (and (boundp 'timer-list)
4556 timer-list)) 4556 timer-list))
4557 (when (eq (timer--function timer) 'image-animate-timeout) 4557 (when (eq (gnus-timer--function timer) 'image-animate-timeout)
4558 (cancel-timer timer)))) 4558 (cancel-timer timer))))
4559 4559
4560(defun gnus-stop-downloads () 4560(defun gnus-stop-downloads ()
diff --git a/lisp/gnus/gnus-util.el b/lisp/gnus/gnus-util.el
index 4c5eabab723..f5e1077f8c4 100644
--- a/lisp/gnus/gnus-util.el
+++ b/lisp/gnus/gnus-util.el
@@ -1964,6 +1964,11 @@ definitions to shadow the loaded ones for use in file byte-compilation."
1964(defun gnus-bound-and-true-p (sym) 1964(defun gnus-bound-and-true-p (sym)
1965 (and (boundp sym) (symbol-value sym))) 1965 (and (boundp sym) (symbol-value sym)))
1966 1966
1967(if (fboundp 'timer--function)
1968 (defalias 'gnus-timer--function 'timer--function)
1969 (defun gnus-timer--function (timer)
1970 (elt timer 5)))
1971
1967(provide 'gnus-util) 1972(provide 'gnus-util)
1968 1973
1969;;; gnus-util.el ends here 1974;;; gnus-util.el ends here