[gnus git] branch master updated: m0-5-133-gdee0c69 =1= gnus-art.el (gnus-article-stop-animations): Fix glitches caused by addition of psec to timers
Katsumi Yamaoka <[email protected]>
| Newsgroups | gmane.emacs.gnus.cvs |
|---|---|
| Message-ID | <[email protected]> |
via dee0c694f05b79f8ee3a20ec30064c829288ef44 (commit)
from ce124d16f2d934891222712b5da65a0032e6e9ce (commit)
- Log -----------------------------------------------------------------
commit dee0c694f05b79f8ee3a20ec30064c829288ef44
Author: Katsumi Yamaoka <[email protected]>
Date: Thu Sep 13 11:17:02 2012 +0000
gnus-art.el (gnus-article-stop-animations): Fix glitches caused by addition of psec to timers
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index a2900b3..6ea7776 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,15 @@
+2012-09-13 Katsumi Yamaoka <[email protected]>
+
+ * gnus-util.el (gnus-timer--function): New function.
+
+ * gnus-art.el (gnus-article-stop-animations): Use it.
+
+2012-09-13 Paul Eggert <[email protected]>
+
+ Fix glitches caused by addition of psec to timers.
+ * gnus-art.el (gnus-article-stop-animations): Use timer--function
+ rather than raw access to timer vector.
+
2012-09-11 Julien Danjou <[email protected]>
* gnus-notifications.el (gnus-notifications): Check for nil values in
diff --git a/lisp/gnus-art.el b/lisp/gnus-art.el
index b9020a4..7dcbd61 100644
--- a/lisp/gnus-art.el
+++ b/lisp/gnus-art.el
@@ -4554,7 +4554,7 @@ commands:
(defun gnus-article-stop-animations ()
(dolist (timer (and (boundp 'timer-list)
timer-list))
- (when (eq (elt timer 5) 'image-animate-timeout)
+ (when (eq (gnus-timer--function timer) 'image-animate-timeout)
(cancel-timer timer))))
(defun gnus-stop-downloads ()
diff --git a/lisp/gnus-util.el b/lisp/gnus-util.el
index 4c5eaba..f5e1077 100644
--- a/lisp/gnus-util.el
+++ b/lisp/gnus-util.el
@@ -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
-----------------------------------------------------------------------
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we listed those
revisions in full, above.
Summary of changes:
lisp/ChangeLog | 12 ++++++++++++
lisp/gnus-art.el | 2 +-
lisp/gnus-util.el | 5 +++++
3 files changed, 18 insertions(+), 1 deletions(-)
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Gnus Project".
The branch, master has been updated
hooks/post-receive
--
Gnus Project