emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: run-with-idle-timer and sit-for/sleep-for


From: Andreas Röhler
Subject: Re: run-with-idle-timer and sit-for/sleep-for
Date: Tue, 8 Jul 2008 17:08:58 +0200
User-agent: KMail/1.9.6 (enterprise 20070904.708012)

Am Dienstag, 8. Juli 2008 schrieb Lennart Borgman (gmail):
>   (defun temp-idle()
>     (message "temp-idle"))
> 
>   (defun temp()
>     (interactive)
>     (message "temp a")
>     (run-with-idle-timer 1 nil 'temp-idle)
>     (sit-for 4)
>     (message "temp b"))


Hi,

here it works.

I.e. if I wait after `run-with-idle-timer'

"temp-idle" is shown in the message buffer.

With `sit-for' emacs probably isn`t idle, but counting.

Maybe describe the case you will test, so we may find a solution.

Cheers

Andreas Röhler






reply via email to

[Prev in Thread] Current Thread [Next in Thread]