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: Wed, 09 Jun 2010 20:53:19 +0200 Message-ID: <87ocfkkpgg.fsf@keller.adm.naquadah.org> References: <1275757657-15244-1-git-send-email-julien@danjou.info> <201006092018.10163.tassilo@member.fsf.org> 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 1276109616 2131 80.91.229.12 (9 Jun 2010 18:53:36 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 9 Jun 2010 18:53:36 +0000 (UTC) Cc: emacs-devel@gnu.org To: Tassilo Horn Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Jun 09 20:53:34 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 1OMQP7-0005hJ-N8 for ged-emacs-devel@m.gmane.org; Wed, 09 Jun 2010 20:53:34 +0200 Original-Received: from localhost ([127.0.0.1]:52385 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OMQP7-0003ap-96 for ged-emacs-devel@m.gmane.org; Wed, 09 Jun 2010 14:53:33 -0400 Original-Received: from [140.186.70.92] (port=51227 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OMQP1-0003Zd-D8 for emacs-devel@gnu.org; Wed, 09 Jun 2010 14:53:28 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OMQOy-0005JJ-1x for emacs-devel@gnu.org; Wed, 09 Jun 2010 14:53:27 -0400 Original-Received: from prometheus.naquadah.org ([212.85.154.174]:33459 helo=mx1.naquadah.org) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OMQOx-0005Iy-Oo for emacs-devel@gnu.org; Wed, 09 Jun 2010 14:53:23 -0400 Original-Received: by mx1.naquadah.org (Postfix, from userid 8) id BC7B65C118; Wed, 9 Jun 2010 20:53:21 +0200 (CEST) Original-Received: from keller.adm.naquadah.org (chapai.naquadah.org [82.227.158.144]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.naquadah.org (Postfix) with ESMTPSA id CB2415C10F; Wed, 9 Jun 2010 20:53:19 +0200 (CEST) Original-Received: from jd by keller.adm.naquadah.org with local (Exim 4.72) (envelope-from ) id 1OMQOt-0003Zt-Ba; Wed, 09 Jun 2010 20:53:19 +0200 In-Reply-To: <201006092018.10163.tassilo@member.fsf.org> (Tassilo Horn's message of "Wed, 9 Jun 2010 20:18:09 +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, 3) 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:125680 Archived-At: --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On Wed, Jun 09 2010, Tassilo Horn wrote: > 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? It'd be possible sure, but I did not think it was worth it nor it would have a use case. You can passe a lambda/closure to :on-close, can't you? If you have an problematic example maybe we can figure out. =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) iEYEARECAAYFAkwP4x8ACgkQpGK1HsL+5c0ewwCeJ/V7bYZsZ/S2Wvcq2QOgW3XY dzYAoKP0UovxMwpdInZu8JktUyQ8tQgN =H+bR -----END PGP SIGNATURE----- --=-=-=--