From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Michael Albinus Newsgroups: gmane.emacs.devel Subject: Re: [PATCH] Add notifications.el Date: Fri, 11 Jun 2010 12:25:32 +0200 Message-ID: <87wru5euhv.fsf@gmx.de> References: <13588_1276211690_ZZh01350LoUj0.00_1276211773.5476.15.camel@localhost.localdomain> <3277_1276238795_o5B6kZER023748_87aar22hj1.fsf@keller.adm.naquadah.org> <1183_1276241420_ZZh0127gAT2R9.00_1276241419.7761.245.camel@azurit.TechFak.Uni-Bielefeld.DE> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1276251964 6286 80.91.229.12 (11 Jun 2010 10:26:04 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 11 Jun 2010 10:26:04 +0000 (UTC) Cc: Jan Moringen , emacs-devel@gnu.org To: Julien Danjou Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Jun 11 12:26:02 2010 connect(): No such file or directory Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1ON1R3-0006vz-0t for ged-emacs-devel@m.gmane.org; Fri, 11 Jun 2010 12:26:01 +0200 Original-Received: from localhost ([127.0.0.1]:48812 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ON1R1-0002mK-VM for ged-emacs-devel@m.gmane.org; Fri, 11 Jun 2010 06:26:00 -0400 Original-Received: from [140.186.70.92] (port=59776 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ON1Qq-0002kN-4L for emacs-devel@gnu.org; Fri, 11 Jun 2010 06:25:49 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1ON1Qh-00066R-RM for emacs-devel@gnu.org; Fri, 11 Jun 2010 06:25:47 -0400 Original-Received: from mail.gmx.net ([213.165.64.20]:35554) by eggs.gnu.org with smtp (Exim 4.69) (envelope-from ) id 1ON1Qh-000661-9D for emacs-devel@gnu.org; Fri, 11 Jun 2010 06:25:39 -0400 Original-Received: (qmail invoked by alias); 11 Jun 2010 10:25:36 -0000 Original-Received: from p4FC18C5D.dip0.t-ipconnect.de (EHLO detlef.gmx.de) [79.193.140.93] by mail.gmx.net (mp007) with SMTP; 11 Jun 2010 12:25:36 +0200 X-Authenticated: #3708877 X-Provags-ID: V01U2FsdGVkX1+Edcpwf1mEFfS+yEvYwwlznqbwS2IVNm5r9TcGDN 2rL1lwOXG4yqdi User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) X-Y-GMX-Trusted: 0 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:125725 Archived-At: Julien Danjou writes: > >> Maybe it's a bug in the notification daemon? It happened for every >> notification I produced from Emacs on this machine. The notifications >> also varied significantly. So in case of an error it wouldn't exactly be >> a corner case which makes this possibility seem unlikely. > > Does it happend with the ones made from notify-send? > > Anyhow, nothing allows you to work-around the bug by putting reason > &optional. Anybody can emit a wrong formatted signal on the dbus, even > with dbus-send. Based on that, any D-Bus bad formatted signal/method > call will raise an error. Jan cannot work around this problem in his own code, because `notifications-on-closed-signal' would already fail. A common trick is to declare it as (defun notifications-on-closed-signal (&rest args) ...) Then you can walk through `args' in your code, and set `id' and `reason' as possible. Best regards, Michael.