From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Tassilo Horn Newsgroups: gmane.emacs.devel Subject: Re: [PATCH] Add notifications.el Date: Wed, 9 Jun 2010 20:18:09 +0200 Message-ID: <201006092018.10163.tassilo@member.fsf.org> References: <1275757657-15244-1-git-send-email-julien@danjou.info> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: Text/Plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1276107508 21308 80.91.229.12 (9 Jun 2010 18:18:28 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 9 Jun 2010 18:18:28 +0000 (UTC) Cc: Julien Danjou To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Jun 09 20:18:26 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 1OMPr3-0003s8-PR for ged-emacs-devel@m.gmane.org; Wed, 09 Jun 2010 20:18:22 +0200 Original-Received: from localhost ([127.0.0.1]:60243 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OMPr3-0005Av-7S for ged-emacs-devel@m.gmane.org; Wed, 09 Jun 2010 14:18:21 -0400 Original-Received: from [140.186.70.92] (port=47221 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OMPqx-0005Ap-Pr for emacs-devel@gnu.org; Wed, 09 Jun 2010 14:18:16 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OMPqv-0007BG-U1 for emacs-devel@gnu.org; Wed, 09 Jun 2010 14:18:15 -0400 Original-Received: from out5.smtp.messagingengine.com ([66.111.4.29]:55605) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OMPqv-0007B5-SS for emacs-devel@gnu.org; Wed, 09 Jun 2010 14:18:13 -0400 Original-Received: from compute1.internal (compute1.internal [10.202.2.41]) by gateway1.messagingengine.com (Postfix) with ESMTP id 50867F87A7; Wed, 9 Jun 2010 14:18:13 -0400 (EDT) Original-Received: from heartbeat1.messagingengine.com ([10.202.2.160]) by compute1.internal (MEProxy); Wed, 09 Jun 2010 14:18:13 -0400 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=messagingengine.com; h=from:to:subject:date:cc:references:in-reply-to:mime-version:content-type:content-transfer-encoding:message-id; s=smtpout; bh=mP/mc8bYkVOgNfV5CenQluT2xP4=; b=FyKxuaqsJ/AixBqE29hy+iMS9xCROswsJBK/HjEEdXV82f+NLADWyoZPaBrUROpcXY69wYSpH8qD+SUQOxAETWCFOYYzuFRE6i+3w3nO3IPLej5kk6svJyOpheuoxIBjnAlkl1a0g/oc+rpKPRcB5BSk05y5+N1vrvrXGftaLpU= X-Sasl-enc: pegE6CJw1A+gZQjBbMq5NX6TyAQHyE7DZ3vvNgTPrZhg 1276107492 Original-Received: from thinkpad.localnet (p54AF1921.dip0.t-ipconnect.de [84.175.25.33]) by mail.messagingengine.com (Postfix) with ESMTPSA id DDC724D4740; Wed, 9 Jun 2010 14:18:12 -0400 (EDT) User-Agent: KMail/1.13.3 (Linux/2.6.34-gentoo; KDE/4.4.4; x86_64; ; ) In-Reply-To: <1275757657-15244-1-git-send-email-julien@danjou.info> X-Face: `TY6r/ws=N5uqO1E`M=Sups<}n%T[E^o_?MJj 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:125679 Archived-At: Hi Julien, I threw away my notification code and now use yours. It's going pretty well, except one thing I cannot figure out. I want to use a :on-close function, so that notifications I've explicitly clicked away don't appear again. (They are triggered minutely by appt.el.) But :on-close functions only get the reason. How do I get the id of the closed notification? Wouldn't it be better to pass the id to that function, too? And another thing: I think `notifications-notify' should error when there is an unknown keyword. I was nearly going mad when trying to figure out why :replace-id didn't work. It was, because the keyword is :replaces-id. ;-) Thanks for another brick in the desktop integration wall! Tassilo