From: "Peter Münster" <pmlists@free.fr>
To: help-gnu-emacs@gnu.org
Subject: Re: notifications-notify resets idle-time
Date: Mon, 13 Feb 2012 16:42:58 +0100 [thread overview]
Message-ID: <87ehtyhh8d.fsf@micropit.couberia.bzh> (raw)
In-Reply-To: 87lio7j6g3.fsf@gmx.de
On Mon, Feb 13 2012, Michael Albinus wrote:
> I was too hasty: I've copied the *Messages* buffer before the
> notification did expire. No error at all.
That means, that ":timeout 1000" did not work for you...!?
> It is not NotificationClosed specific. I would rather say that is due to
> the nature of D-Bus events, handled via `special-event-map'. I guess that
> all events defined in that map will reset the idle timer.
Yes. It would be good, if there was a method to filter these events.
(perhaps there is already, but I don't see it...)
> I still don't understand why it disturbs you. Could you, please, explain
> your use case?
On the one hand, I use `gnus-demon-add-handler' for several actions,
that need to be done repeatedly and only when idle for at least some
minutes.
On the other hand I use
(setq appt-disp-window-function 'pm/todo-notify ; popup notify-windows
appt-display-interval 1)
and
(org-agenda-to-appt t '((headline "TODO")))
in such a way, that the notification windows are refreshed once per
minute (":timeout 60000"). This is nice, because I don't need to click
on the notification window, I just edit my org-mode-todo-list (switch
an item from todo to done), and the notification window will disappear
automatically in at most 60 seconds.
But when I'm idle, and once per minute a notification windows expires,
the gnus-demon won't activate my handlers, because the idle-time is
always reset, and this can be annoying.
I admit, that this use case is quite particular and I don't expect emacs
developers to fix it. Nevertheless, I'm going to fill a bug report, just
in case.
In the meanwhile, I've patched my notification-daemon, so that it does
no more send any event, when windows expire (ugly work-around, but I
don't need to touch emacs).
--
Peter
next prev parent reply other threads:[~2012-02-13 15:42 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
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 [this message]
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87ehtyhh8d.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.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.