David Hume
2014-04-23 16:09:22 UTC
I have this code:
(defun timeless ()
(interactive)
(run-with-timer 10 10 (message "Hello Time"))
(sit-for 120)
)
I was expecting that I would be able to type "timeless" and it would
output the message "Hello Time" every 10 seconds. But it seems to output
it only once. (Removing the sit-for line makes no difference).
What I am really trying to do is write something which will check for
new news periodically, and then perhaps notify me if there is any. My
attempts with run-with-idle-timer didn't seem to work either.
How is this function meant to be used? Am I using it in the wrong way?
(defun timeless ()
(interactive)
(run-with-timer 10 10 (message "Hello Time"))
(sit-for 120)
)
I was expecting that I would be able to type "timeless" and it would
output the message "Hello Time" every 10 seconds. But it seems to output
it only once. (Removing the sit-for line makes no difference).
What I am really trying to do is write something which will check for
new news periodically, and then perhaps notify me if there is any. My
attempts with run-with-idle-timer didn't seem to work either.
How is this function meant to be used? Am I using it in the wrong way?