From: "Peter Münster" <pmlists@free.fr>
To: help-gnu-emacs@gnu.org
Subject: Re: notifications-notify resets idle-time
Date: Sun, 12 Feb 2012 21:37:07 +0100 [thread overview]
Message-ID: <87lio7okjw.fsf@micropit.couberia.bzh> (raw)
In-Reply-To: 87bop4uut0.fsf@gmx.de
[-- Attachment #1: Type: text/plain, Size: 993 bytes --]
On Sun, Feb 12 2012, Michael Albinus wrote:
> Look for the code which is embedded in
>
> #ifdef HAVE_DBUS
> #endif
Yes, the code is executed, when the notification windows expires.
The timer is reset on line 2849 in keyboard.c:
--8<---------------cut here---------------start------------->8---
non_reread:
if (!end_time)
timer_stop_idle ();
RESUME_POLLING;
--8<---------------cut here---------------end--------------->8---
I've found that with some `puts("xxx")' here and there. I tried gdb
(using ddd) but without success: the execution stops before I can set a
breakpoint...
> Maybe it's a timing issue.
I don't know. But I've prepared now a very simple test file and it would
be nice if you could try it please on your system and send me the
*Messages* buffer afterwards, just to compare it with mine.
You just need to save the attached file in /tmp and then run
"emacs -Q -l /tmp/notify.el"
The test takes just 2 seconds ;)
Thanks for your efforts!
--
Peter
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: notify.el --]
[-- Type: text/x-emacs-lisp, Size: 325 bytes --]
(require 'notifications)
(setq dbus-debug t)
(notifications-notify :timeout 1000)
(defun my-test ()
(let ((ct (current-idle-time)))
(message (format "idle time: %f"
(if ct
(+ (cadr ct) (/ (nth 2 ct) 1000000.0))
0)))))
(run-with-timer 1.5 nil 'my-test)
next prev parent reply other threads:[~2012-02-12 20:37 UTC|newest]
Thread overview: 25+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-02-10 22:08 notifications-notify resets idle-time Peter Münster
2012-02-11 9:57 ` Michael Albinus
2012-02-11 11:38 ` Peter Münster
2012-02-11 12:40 ` Michael Albinus
2012-02-11 12:51 ` Peter Münster
2012-02-11 16:00 ` Michael Albinus
2012-02-11 16:38 ` Peter Münster
2012-02-11 17:26 ` Michael Albinus
2012-02-11 19:06 ` Peter Münster
2012-02-12 9:16 ` Michael Albinus
2012-02-12 11:09 ` Peter Münster
2012-02-12 11:59 ` Michael Albinus
2012-02-12 20:37 ` Peter Münster [this message]
2012-02-12 21:17 ` Michael Albinus
2012-02-13 8:29 ` Peter Münster
2012-02-13 11:53 ` Michael Albinus
2012-02-13 15:42 ` Peter Münster
2012-02-13 16:43 ` Michael Albinus
2012-02-13 23:13 ` Peter Münster
2012-02-14 9:45 ` Michael Albinus
2012-03-04 21:24 ` Peter Münster
2012-03-05 14:51 ` Michael Albinus
2012-03-06 10:34 ` Michael Albinus
2012-03-06 14:53 ` Peter Münster
2012-03-07 7:58 ` Michael Albinus
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87lio7okjw.fsf@micropit.couberia.bzh \
--to=pmlists@free.fr \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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 read-only IMAP folder(s) and NNTP newsgroup(s).