help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: notifications-notify resets idle-time


From: Michael Albinus
Subject: Re: notifications-notify resets idle-time
Date: Sat, 11 Feb 2012 10:57:05 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.93 (gnu/linux)

Peter Münster <address@hidden> writes:

> Hello,

Hi,

> How can I prevent `notifications-notify' from resetting the idle time?
>
> In detail: when evaluating the following code, you'll see, that the idle
> time does not increase:
>
> (require 'notifications)
> (defun my-test ()
>   (notifications-notify)
>   (message (format "idle: %d" (if (current-idle-time)
>                                 (cadr (current-idle-time))
>                               0))))
> (run-with-timer 5 5 'my-test)
>
> TIA for any hints,

I have no problem. I've just evaluated your code snippet, and I get

idle: 2
idle: 7
idle: 12
idle: 17
idle: 22
idle: 27
idle: 32
idle: 2

"GNU Emacs 24.0.93.1 (x86_64-unknown-linux-gnu, GTK+ Version 2.24.6)
 of 2012-01-29 on xxx"

Best regards, Michael.



reply via email to

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