From: Paul Stodghill <stodghil@CS.Cornell.EDU>
Subject: Final (?) fix for gnus-demon.el
Date: 08 Jan 1997 08:09:56 -0500 [thread overview]
Message-ID: <mlbub0qpnf.fsf@hoho.cs.cornell.edu> (raw)
In 0.79, the demon still runs jobs, even when Emacs is not idle. Here's the
fix.
--- rgnus-0.79/lisp/gnus-demon.el.orig Tue Jan 7 12:40:05 1997
+++ rgnus-0.79/lisp/gnus-demon.el Tue Jan 7 13:34:55 1997
@@ -184,10 +184,14 @@
(unless (zerop time)
(setcar (nthcdr 1 handler) (decf time)))
(and (zerop time) ; If the timer now is zero...
- (or (not (setq idle (nth 2 handler))) ; Don't care about idle.
- (and (numberp idle) ; Numerical idle...
- (< idle gnus-demon-idle-time)) ; Idle timed out.
- idle) ; Or just need to be idle.
+ ;; Test for appropriate idleness
+ (progn
+ (setq idle (nth 2 handler))
+ (cond
+ ((null idle) t) ; Don't care about idle.
+ ((numberp idle) ; Numerical idle...
+ (< idle gnus-demon-idle-time)) ; Idle timed out.
+ (t (< 0 gnus-demon-idle-time)))) ; Or just need to be idle.
;; So we call the handler.
(progn
(funcall (car handler))
--
Paul Stodghill <stodghil@cs.cornell.edu>
http://www.cs.cornell.edu/home/stodghil/home.html
next reply other threads:[~1997-01-08 13:09 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
1997-01-08 13:09 Paul Stodghill [this message]
1997-01-09 8:33 ` Wesley.Hardaker
1997-01-09 13:35 ` Paul Stodghill
1997-01-09 16:40 ` Wesley.Hardaker
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=mlbub0qpnf.fsf@hoho.cs.cornell.edu \
--to=stodghil@cs.cornell.edu \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).