Announcements and discussions for Gnus, the GNU Emacs Usenet newsreader
 help / color / mirror / Atom feed
* Idle Time to Poll Serve
@ 2020-02-20 14:05 Richmond
  2020-02-20 16:41 ` Eric Abrahamsen
  0 siblings, 1 reply; 8+ messages in thread
From: Richmond @ 2020-02-20 14:05 UTC (permalink / raw)
  To: info-gnus-english

I have devised this script to set up idle timers to poll the news
server. But it seems to cause emacs to hang after a while. If I use gtk
I can get it to respond with ctrl-g, but running in a terminal,
i.e. konsole or lxterminal, it is more difficult. What's wrong? This is
placed in .gnus

(defun news-check ()
  (ignore-errors
    (gnus-group-get-new-news)
    )
  (setq result (run-with-idle-timer (time-add (current-idle-time) 300) t (lambda () (news-check))))
  )

(defun tell-me-news ()
  (interactive)
  (setq result (run-with-idle-timer 300 t (lambda () (news-check))))
  (message "timer result %s" result)
)

(tell-me-news)

_______________________________________________
info-gnus-english mailing list
info-gnus-english@gnu.org
https://lists.gnu.org/mailman/listinfo/info-gnus-english

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2020-02-21  7:35 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-02-20 14:05 Idle Time to Poll Serve Richmond
2020-02-20 16:41 ` Eric Abrahamsen
2020-02-20 16:52   ` Richmond
2020-02-20 17:15   ` Richmond
2020-02-20 17:44     ` Eric Abrahamsen
2020-02-20 18:25     ` Adam Sjøgren via info-gnus-english
2020-02-20 22:02       ` Richmond
2020-02-21  7:35         ` Adam Sjøgren via info-gnus-english

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).