From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bastien Subject: Re: [PATCH] org-show-notification will use todochiku.el if available Date: Thu, 23 Jul 2009 17:41:03 +0200 Message-ID: <87skgnbaxm.fsf@bzg.ath.cx> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MU1VV-0000vi-Dw for emacs-orgmode@gnu.org; Thu, 23 Jul 2009 12:51:01 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MU1VQ-0000qC-OV for emacs-orgmode@gnu.org; Thu, 23 Jul 2009 12:51:01 -0400 Received: from [199.232.76.173] (port=57785 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MU1VQ-0000px-Ln for emacs-orgmode@gnu.org; Thu, 23 Jul 2009 12:50:56 -0400 Received: from rv-out-0708.google.com ([209.85.198.245]:6117) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MU1VQ-0004JP-9Q for emacs-orgmode@gnu.org; Thu, 23 Jul 2009 12:50:56 -0400 Received: by rv-out-0708.google.com with SMTP id f25so438900rvb.6 for ; Thu, 23 Jul 2009 09:50:54 -0700 (PDT) In-Reply-To: (Jason F. McBrayer's message of "Wed, 22 Jul 2009 14:43:30 -0400") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: "Jason F. McBrayer" Cc: org-mode list Hi Jason, thanks a lot for the idea. I have generalized this approach a bit by adding a new option: org-show-notification-handler. The value of this new variable can either be an elisp function or a program. The function/program will be called with the notification string as an argument. So for example: (setq org-show-notification-handler '(lambda (notification) (todochiku-message "org-mode notification" notification (todochiku-icon 'emacs)))) should do what you want. If this variable is nil, the notification mechanism falls back on notify-send (if available) and the elisp message otherwise. Thanks again! -- Bastien