From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Fabrice Niessen" Newsgroups: gmane.emacs.help Subject: Re: Advising appt-mode Date: Tue, 17 Nov 2009 11:18:45 +0100 Organization: My Googlest Message-ID: <87bpj1xxmi.fsf@mundaneum.com> References: <878wea5zpd.wl%richard.lewis@gold.ac.uk> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1258475210 2231 80.91.229.12 (17 Nov 2009 16:26:50 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 17 Nov 2009 16:26:50 +0000 (UTC) To: help-gnu-emacs-mXXj517/zsQ@public.gmane.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org-mXXj517/zsQ@public.gmane.org Tue Nov 17 17:26:43 2009 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1NAQsw-0001M8-7y for geh-help-gnu-emacs@m.gmane.org; Tue, 17 Nov 2009 17:26:30 +0100 Original-Received: from localhost ([127.0.0.1]:47621 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NAQsv-0006WS-NF for geh-help-gnu-emacs@m.gmane.org; Tue, 17 Nov 2009 11:26:29 -0500 Original-Path: news.stanford.edu!usenet.stanford.edu!goblin1!goblin.stu.neva.ru!feeder.eternal-september.org!eternal-september.org!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 43 Original-X-Trace: news.eternal-september.org U2FsdGVkX19vdy0swXc5UI6EWQtOFurciV2w3/kHFWYbukFYnl2aplUaQ62NEySV8T2866yaNyTzdAFhL2YiIiuAM7Vp9UL0b1pAPJUI4Rsn+wK2Kz+6nKyiy0hZoZPegTpPcKLlIqB8O/ngkUvQVQ== Original-X-Complaints-To: abuse-VVbKFVtnif8H+i2N2EyTrmui9UKz+5OX@public.gmane.org Original-NNTP-Posting-Date: Tue, 17 Nov 2009 10:18:45 +0000 (UTC) X-Auth-Sender: U2FsdGVkX1/VPEWZ679U6w37BaWpJqcGEdlBtgGJZTQ= X-Archive: encrypt X-Www-site: http://www.MyGooglest.com/fni Cancel-Lock: sha1:/no7gFKH965C8xVNM0b3nhvSIN0= sha1:nHRzhdrMnNcUs38epxmD1V6bIY4= User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (gnu/linux) Original-Xref: news.stanford.edu gnu.emacs.help:174740 X-Mailman-Approved-At: Tue, 17 Nov 2009 11:23:37 -0500 X-BeenThere: help-gnu-emacs-mXXj517/zsQ@public.gmane.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org-mXXj517/zsQ@public.gmane.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org-mXXj517/zsQ@public.gmane.org Xref: news.gmane.org gmane.emacs.help:69840 Archived-At: Hi Richard, Richard Riley wrote: > Glenn Morris writes: > >> Richard Lewis wrote: >> >>> I'm trying to make appt-mode display popup messages on my desktop >>> (using a small wrapper function for libnotify) by advising the >>> appt-check function like this: >> >> No need to advise anything. Customize appt-disp-window-function (the >> name is a little misleading) to a function of your choice. >> > > I dont know if this still works but it might help:- > > http://www.emacswiki.org/emacs-en/OrgMode-OSD The following works perfectly for me... --8<---------------cut here---------------start------------->8--- (when window-system (setq appt-display-format 'window) ;; FIXME Check `notify-send' (in `libnotify-bin' Ubuntu package) is installed (defun rgr/org-display (min-to-app new-time msg) (shell-command (concat "notify-send " "-i /usr/share/icons/gnome/32x32/status/appointment-soon.png " "'Appointment' " "'" msg "'"))) ;; TODO For Windows users: use todochicku.el and the snarl notifier (setq appt-disp-window-function (function rgr/org-display))) --8<---------------cut here---------------end--------------->8--- Best regards, Fabrice -- Fabrice Niessen Search the Web with "My Google Search Tools" on http://www.MyGooglest.com