diff lisp/gnus/gnus-demon.el @ 169:15872534500d r20-3b11

Import from CVS: tag r20-3b11
author cvs
date Mon, 13 Aug 2007 09:46:53 +0200
parents 0132846995bd
children
line wrap: on
line diff
--- a/lisp/gnus/gnus-demon.el	Mon Aug 13 09:45:48 2007 +0200
+++ b/lisp/gnus/gnus-demon.el	Mon Aug 13 09:46:53 2007 +0200
@@ -223,7 +223,8 @@
 	 ((null (setq idle (nth 2 handler)))
 	  ;; We do nothing.
 	  )
-	 ((not (numberp idle))
+	 ((and (not (numberp idle))
+	       (gnus-demon-is-idle-p))
 	  ;; We want to call this handler each and every time that
 	  ;; Emacs is idle.
 	  (ignore-errors (funcall (car handler))))
@@ -232,6 +233,7 @@
 	  ;; for a specified number of timesteps.
 	  (and (not (memq (car handler) gnus-demon-idle-has-been-called))
 	       (< idle gnus-demon-idle-time)
+	       (gnus-demon-is-idle-p)
 	       (progn
 		 (ignore-errors (funcall (car handler)))
 		 ;; Make sure the handler won't be called once more in