aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul Eggert2012-09-12 23:09:45 -0700
committerPaul Eggert2012-09-12 23:09:45 -0700
commit72eac303eabbb403eae650c9dd0c93851b0fec23 (patch)
tree480b2529cbc787c643be94f462ab4913216e1c1a
parentd59a1afb9acc881201223e7c573e94526b3cd3fc (diff)
downloademacs-72eac303eabbb403eae650c9dd0c93851b0fec23.tar.gz
emacs-72eac303eabbb403eae650c9dd0c93851b0fec23.zip
Fix glitches caused by addition of psec to timers.
* etc/NEWS: Document timer format change. * lisp/image.el (image-animate-timer): * lisp/time.el (display-time-world-timer): Use timer--function and timer--args rather than raw access to timer vector. * lisp/gnus/gnus-art.el (gnus-article-stop-animations): Use timer--function rather than raw access to timer vector. Fixes: debbugs:12430
-rw-r--r--etc/ChangeLog4
-rw-r--r--etc/NEWS5
-rw-r--r--lisp/ChangeLog8
-rw-r--r--lisp/gnus/ChangeLog6
-rw-r--r--lisp/gnus/gnus-art.el2
-rw-r--r--lisp/image.el4
-rw-r--r--lisp/time.el3
7 files changed, 28 insertions, 4 deletions
diff --git a/etc/ChangeLog b/etc/ChangeLog
index 11e7e5ca108..20ded2fd847 100644
--- a/etc/ChangeLog
+++ b/etc/ChangeLog
@@ -1,3 +1,7 @@
12012-09-13 Paul Eggert <eggert@cs.ucla.edu>
2
3 * NEWS: Document timer format change (Bug#12430).
4
12012-09-11 Paul Eggert <eggert@cs.ucla.edu> 52012-09-11 Paul Eggert <eggert@cs.ucla.edu>
2 6
3 Simplify, document, and port floating-point (Bug#12381). 7 Simplify, document, and port floating-point (Bug#12381).
diff --git a/etc/NEWS b/etc/NEWS
index a7388c4e9fa..eb5a2ed6660 100644
--- a/etc/NEWS
+++ b/etc/NEWS
@@ -101,6 +101,11 @@ machines. Other functions that use this format, such as
101file-attributes and format-time-string, have been changed accordingly. 101file-attributes and format-time-string, have been changed accordingly.
102Old-format time stamps are still accepted. 102Old-format time stamps are still accepted.
103 103
104** The format of timers in timer-list and timer-idle-list is now
105[HIGH-SECONDS LOW-SECONDS USECS PSECS REPEAT-DELAY FUNCTION ARGS IDLE-DELAY].
106The PSECS slot is new, and uses picosecond resolution. It can be
107accessed via the new timer--psecs accessor.
108
104** Emacs now generates backtraces on fatal errors. 109** Emacs now generates backtraces on fatal errors.
105On encountering a fatal error, Emacs now outputs a textual description 110On encountering a fatal error, Emacs now outputs a textual description
106of the fatal signal, and a short backtrace on platforms like glibc 111of the fatal signal, and a short backtrace on platforms like glibc
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 41dc46021f6..1bb8f913c20 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,11 @@
12012-09-13 Paul Eggert <eggert@cs.ucla.edu>
2
3 Fix glitches caused by addition of psec to timers (Bug#12430).
4 * image.el (image-animate-timer):
5 * time.el (display-time-world-timer):
6 Use timer--function and timer--args rather than raw access to
7 timer vector.
8
12012-09-13 Glenn Morris <rgm@gnu.org> 92012-09-13 Glenn Morris <rgm@gnu.org>
2 10
3 * emacs-lisp/bytecomp.el (byte-compile-warning-prefix): 11 * emacs-lisp/bytecomp.el (byte-compile-warning-prefix):
diff --git a/lisp/gnus/ChangeLog b/lisp/gnus/ChangeLog
index 5c7f106f6db..3f69a84db88 100644
--- a/lisp/gnus/ChangeLog
+++ b/lisp/gnus/ChangeLog
@@ -1,3 +1,9 @@
12012-09-13 Paul Eggert <eggert@cs.ucla.edu>
2
3 Fix glitches caused by addition of psec to timers.
4 * gnus-art.el (gnus-article-stop-animations): Use timer--function
5 rather than raw access to timer vector.
6
12012-09-11 Julien Danjou <julien@danjou.info> 72012-09-11 Julien Danjou <julien@danjou.info>
2 8
3 * gnus-notifications.el (gnus-notifications): Check for nil values in 9 * gnus-notifications.el (gnus-notifications): Check for nil values in
diff --git a/lisp/gnus/gnus-art.el b/lisp/gnus/gnus-art.el
index b9020a40b75..4dc004f04d4 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 (elt timer 5) 'image-animate-timeout) 4557 (when (eq (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/image.el b/lisp/image.el
index 7801923c3fe..99c0a74a512 100644
--- a/lisp/image.el
+++ b/lisp/image.el
@@ -645,8 +645,8 @@ number, play until that number of seconds has elapsed."
645 (while tail 645 (while tail
646 (setq timer (car tail) 646 (setq timer (car tail)
647 tail (cdr tail)) 647 tail (cdr tail))
648 (if (and (eq (aref timer 5) 'image-animate-timeout) 648 (if (and (eq (timer--function timer) 'image-animate-timeout)
649 (eq (car-safe (aref timer 6)) image)) 649 (eq (car-safe (timer--args timer)) image))
650 (setq tail nil) 650 (setq tail nil)
651 (setq timer nil))) 651 (setq timer nil)))
652 timer)) 652 timer))
diff --git a/lisp/time.el b/lisp/time.el
index 8d43b565416..fe3cdbb57be 100644
--- a/lisp/time.el
+++ b/lisp/time.el
@@ -575,7 +575,8 @@ To turn off the world time display, go to that window and type `q'."
575 (let ((list timer-list)) 575 (let ((list timer-list))
576 (while list 576 (while list
577 (let ((elt (pop list))) 577 (let ((elt (pop list)))
578 (when (equal (symbol-name (aref elt 5)) "display-time-world-timer") 578 (when (equal (symbol-name (timer--function elt))
579 "display-time-world-timer")
579 (cancel-timer elt))))))) 580 (cancel-timer elt)))))))
580 581
581;;;###autoload 582;;;###autoload