From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Michael Albinus Newsgroups: gmane.emacs.help Subject: Re: notifications-notify resets idle-time Date: Mon, 13 Feb 2012 17:43:56 +0100 Message-ID: <87hayuk7jn.fsf@gmx.de> 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> <87ehtyhh8d.fsf@micropit.couberia.bzh> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1329151470 4100 80.91.229.3 (13 Feb 2012 16:44:30 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 13 Feb 2012 16:44:30 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Peter =?utf-8?Q?M=C3=BCnster?= Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Feb 13 17:44:27 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 1Rwz0r-0002s7-FU for geh-help-gnu-emacs@m.gmane.org; Mon, 13 Feb 2012 17:44:25 +0100 Original-Received: from localhost ([::1]:47664 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rwz0q-0001PF-Og for geh-help-gnu-emacs@m.gmane.org; Mon, 13 Feb 2012 11:44:24 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:56336) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rwz0h-0001O9-GO for help-gnu-emacs@gnu.org; Mon, 13 Feb 2012 11:44:21 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Rwz0b-0007OD-Cd for help-gnu-emacs@gnu.org; Mon, 13 Feb 2012 11:44:15 -0500 Original-Received: from mailout-de.gmx.net ([213.165.64.23]:39274) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1Rwz0b-0007Nf-45 for help-gnu-emacs@gnu.org; Mon, 13 Feb 2012 11:44:09 -0500 Original-Received: (qmail invoked by alias); 13 Feb 2012 16:44:06 -0000 Original-Received: from p57BB965F.dip0.t-ipconnect.de (EHLO detlef.gmx.de) [87.187.150.95] by mail.gmx.net (mp019) with SMTP; 13 Feb 2012 17:44:06 +0100 X-Authenticated: #3708877 X-Provags-ID: V01U2FsdGVkX19k1atbLQhk5VK5tIdZ1LIrHjoBN/sLFtJqEQ9khF osYS+oLte1boWn In-Reply-To: <87ehtyhh8d.fsf@micropit.couberia.bzh> ("Peter \=\?utf-8\?Q\?M\?\= \=\?utf-8\?Q\?\=C3\=BCnster\=22's\?\= message of "Mon, 13 Feb 2012 16:42:58 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.93 (gnu/linux) X-Y-GMX-Trusted: 0 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 213.165.64.23 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:83736 Archived-At: Peter M=C3=BCnster writes: >> 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 works for me, don't worry. >> 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...) One idea would be to add a property `dont-reset-idle-time' to an incoming event. Per default it is nil, and the timer is reset. But if this property exists non-nil, the timer isn't reset. Then we could extend `dbus-register-signal' in order to allow setting this property, or not. "NotificationClosed" would be registered with this property, and "ActionInvoked" without. > 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. Please do. I wouldn't call it bug but wishlist, but it might be worth to implement. Chances are good that I will do, but I would like to discuss first with the other developers. Please add also your use case to the bug report. > 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). Wouldn't it suffice just to deregister signal "NotificationClosed"? You don't need this signal, if I understand your use cases. Another idea would be to send a new notification message to the opened notification window, before it expires. I haven't tried by myself, but I remember vaguely that it shall be possible. Best regards, Michael.