]> code.delx.au - gnu-emacs/commitdiff
* lisp/time.el (display-time-event-handler)
authorStefan Monnier <monnier@iro.umontreal.ca>
Fri, 9 Aug 2013 18:49:36 +0000 (14:49 -0400)
committerStefan Monnier <monnier@iro.umontreal.ca>
Fri, 9 Aug 2013 18:49:36 +0000 (14:49 -0400)
(display-time-next-load-average): Don't call sit-for since it seems
unnecessary.

Fixes: debbugs:15045
lisp/ChangeLog
lisp/time.el

index 717deedcee488426da6194c6bc203fc97aee00a8..122634d144c4aeebf67b3a44e8ab7f4d230afe81 100644 (file)
@@ -1,5 +1,9 @@
 2013-08-09  Stefan Monnier  <monnier@iro.umontreal.ca>
 
+       * time.el (display-time-event-handler)
+       (display-time-next-load-average): Don't call sit-for since it seems
+       unnecessary (bug#15045).
+
        * emacs-lisp/checkdoc.el: Remove redundant :group keywords.
        Use #' instead of ' to quote functions.
        (checkdoc-output-mode): Use setq-local.
index 4b5ecf16be1ffa8985dd8c4cccbb7bac9e2b6fec..7e558746c6ad49a5a939f1be1d8a35424b8c4763 100644 (file)
@@ -323,8 +323,6 @@ would give mode line times like `94/12/30 21:07:48 (UTC)'."
 
 (defun display-time-event-handler ()
   (display-time-update)
-  ;; Do redisplay right now, if no input pending.
-  (sit-for 0)
   (let* ((current (current-time))
         (timer display-time-timer)
         ;; Compute the time when this timer will run again, next.
@@ -352,8 +350,7 @@ Switches from the 1 to 5 to 15 minute load average, and then back to 1."
   (interactive)
   (if (= 3 (setq display-time-load-average (1+ display-time-load-average)))
       (setq display-time-load-average 0))
-  (display-time-update)
-  (sit-for 0))
+  (display-time-update))
 
 (defun display-time-mail-check-directory ()
   (let ((mail-files (directory-files display-time-mail-directory t))