From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: =?utf-8?Q?Peter_M=C3=BCnster?= Newsgroups: gmane.emacs.help Subject: Re: notifications-notify resets idle-time Date: Mon, 13 Feb 2012 16:42:58 +0100 Message-ID: <87ehtyhh8d.fsf@micropit.couberia.bzh> References: <874nuy5okw.fsf@micropit.couberia.bzh> <87wr7tr8um.fsf@gmx.de> <87obt5siph.fsf@micropit.couberia.bzh> <87wr7t5ys8.fsf@gmx.de> <87hayxsfbo.fsf@micropit.couberia.bzh> <87sjih2wdo.fsf@gmx.de> <87mx8p5nqa.fsf@micropit.couberia.bzh> <87obt5mgc8.fsf@gmx.de> <87fweh5gw4.fsf@micropit.couberia.bzh> <87fwegv2c1.fsf@gmx.de> <877gzs5mw1.fsf@micropit.couberia.bzh> <87bop4uut0.fsf@gmx.de> <87lio7okjw.fsf@micropit.couberia.bzh> <87sjif21m2.fsf@gmx.de> <874nuvi1bl.fsf@micropit.couberia.bzh> <87lio7j6g3.fsf@gmx.de> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1329147851 5604 80.91.229.3 (13 Feb 2012 15:44:11 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 13 Feb 2012 15:44:11 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Feb 13 16:44:08 2012 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Rwy4W-0006Tv-9z for geh-help-gnu-emacs@m.gmane.org; Mon, 13 Feb 2012 16:44:08 +0100 Original-Received: from localhost ([::1]:36625 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rwy4V-0006N3-D4 for geh-help-gnu-emacs@m.gmane.org; Mon, 13 Feb 2012 10:44:07 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:37184) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rwy4N-0006Cm-9P for help-gnu-emacs@gnu.org; Mon, 13 Feb 2012 10:44:03 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Rwy4F-0002qB-Og for help-gnu-emacs@gnu.org; Mon, 13 Feb 2012 10:43:59 -0500 Original-Received: from plane.gmane.org ([80.91.229.3]:52810) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rwy4F-0002oF-6C for help-gnu-emacs@gnu.org; Mon, 13 Feb 2012 10:43:51 -0500 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1Rwy3z-0005wE-AA for help-gnu-emacs@gnu.org; Mon, 13 Feb 2012 16:43:35 +0100 Original-Received: from arennes-359-1-260-148.w2-12.abo.wanadoo.fr ([2.12.35.148]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 13 Feb 2012 16:43:35 +0100 Original-Received: from pmlists by arennes-359-1-260-148.w2-12.abo.wanadoo.fr with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 13 Feb 2012 16:43:35 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 49 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: arennes-359-1-260-148.w2-12.abo.wanadoo.fr User-Agent: Gnus/5.130002 (Ma Gnus v0.2) Emacs/24.0.93 (gnu/linux) Cancel-Lock: sha1:M/nxyk74RCI7btwk8bdwOQiMmP8= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:83735 Archived-At: 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