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

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

notifications-notify resets idle-time


From: Peter Münster
Subject: notifications-notify resets idle-time
Date: Fri, 10 Feb 2012 23:08:15 +0100
User-agent: Gnus/5.130002 (Ma Gnus v0.2) Emacs/24.0.93 (gnu/linux)

Hello,

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:

--8<---------------cut here---------------start------------->8---
(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)
--8<---------------cut here---------------end--------------->8---

TIA for any hints,
-- 
           Peter




reply via email to

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