From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Julien Danjou Newsgroups: gmane.emacs.devel Subject: Re: [PATCH] Add notifications.el Date: Fri, 11 Jun 2010 11:15:57 +0200 Message-ID: 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: multipart/signed; boundary="=-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" X-Trace: dough.gmane.org 1276248225 24959 80.91.229.12 (11 Jun 2010 09:23:45 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 11 Jun 2010 09:23:45 +0000 (UTC) Cc: emacs-devel@gnu.org To: Jan Moringen Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Jun 11 11:23:42 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 1ON0Si-0004a5-1A for ged-emacs-devel@m.gmane.org; Fri, 11 Jun 2010 11:23:40 +0200 Original-Received: from localhost ([127.0.0.1]:33350 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ON0Sg-0005qs-SW for ged-emacs-devel@m.gmane.org; Fri, 11 Jun 2010 05:23:38 -0400 Original-Received: from [140.186.70.92] (port=36458 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ON0RY-00055S-1y for emacs-devel@gnu.org; Fri, 11 Jun 2010 05:22:29 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1ON0LM-0002p9-1E for emacs-devel@gnu.org; Fri, 11 Jun 2010 05:16:05 -0400 Original-Received: from coquelicot-s.easter-eggs.com ([213.215.37.94]:41674) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1ON0LL-0002og-RA for emacs-devel@gnu.org; Fri, 11 Jun 2010 05:16:04 -0400 Original-Received: from cigue.easter-eggs.fr (cigue.easter-eggs.fr [10.0.0.33]) by rose.easter-eggs.fr (Postfix) with ESMTPS id 39681142A0; Fri, 11 Jun 2010 11:15:58 +0200 (CEST) Original-Received: from jdanjou by cigue.easter-eggs.fr with local (Exim 4.72) (envelope-from ) id 1ON0LI-0001LX-E0; Fri, 11 Jun 2010 11:16:00 +0200 In-Reply-To: <1183_1276241420_ZZh0127gAT2R9.00_1276241419.7761.245.camel@azurit.TechFak.Uni-Bielefeld.DE> (Jan Moringen's message of "Fri, 11 Jun 2010 09:30:19 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) 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:125724 Archived-At: --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On Fri, Jun 11 2010, Jan Moringen wrote: > In the packaged NEWS file it says: > > version 0.4.4 (27-February-2007) It's not that old, I've got the latest one which is 0.4.5. > 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. Bad that's like calling a Lisp function with requires 2 arguments with only 1. It raises an error because you call it badly. I don't see why we wouldn't do the thing even if the function is called via D-Bus. But yes if, you don't want to know about bugged implementation, you use &optional in every dbus signal/method function you will use (even outside notifications.el). =2D-=20 Julien Danjou // =E1=90=B0 http://julien.danjou.info --=-=-= Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) iEYEARECAAYFAkwR/s0ACgkQpGK1HsL+5c2xgACfVeM1LA4wtHhV1nIoma04ZkAn awAAoJHOUcCR0Lc9tgYHGK+e2MP8TVvk =XsXU -----END PGP SIGNATURE----- --=-=-=--