From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tassilo Horn Subject: Re: notify, when something to do Date: Sun, 23 Oct 2011 18:30:20 +0200 Message-ID: <87lisbacwz.fsf@thinkpad.tsdh.de> References: <87vcrgqav9.fsf@micropit.couberia.bzh> <87pqhnade0.fsf@thinkpad.tsdh.de> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([140.186.70.92]:37147) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RI0wV-0002ee-Cl for emacs-orgmode@gnu.org; Sun, 23 Oct 2011 12:30:36 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RI0wT-0005nq-K2 for emacs-orgmode@gnu.org; Sun, 23 Oct 2011 12:30:35 -0400 Received: from lo.gmane.org ([80.91.229.12]:50530) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RI0wT-0005na-DJ for emacs-orgmode@gnu.org; Sun, 23 Oct 2011 12:30:33 -0400 Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1RI0wR-0005eL-Ip for emacs-orgmode@gnu.org; Sun, 23 Oct 2011 18:30:31 +0200 Received: from 91-67-169-145-dynip.superkabel.de ([91.67.169.145]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 23 Oct 2011 18:30:31 +0200 Received: from tassilo by 91-67-169-145-dynip.superkabel.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 23 Oct 2011 18:30:31 +0200 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Tassilo Horn writes: > (defvar th-notify-title-to-id-map (make-hash-table :test 'string=) > "Maps TITLE values of notifications to the last notification ID. > If ID is -1, then any further notifications with that body will > be skipped.") > > (defun th-notify (&rest args) > "Create a notification popup. > For ARGS, see `notifications-notify'. > There's some new default behavior over the function above: > > - Notifications with same :body replace each other. :body, > because my notifications are usually something like > > :title \"Meeting with Hugo\" > :body \"In 15 Minutes\" > > where each minute a similar notification with decreasing > minutes in the :body is triggered. This comment is obviously outdated. The notifications with equal :title now replace each other. Bye, Tassilo