From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: Re: Re: org-mode and appointments Date: Thu, 28 Feb 2008 18:17:59 -0500 Message-ID: <32699.1204240679@alphaville.zko.hp.com> References: <87ejb063bz.fsf@gollum.intra.norang.ca> <5E8CC282-98B9-4E3D-BF73-BB61D8D7EB67@gmail.com> <20080227010115.GA18739@odin.demosthenes.org> <20080228005504.GH24573@odin.demosthenes.org> <87tzjtevrg.fsf@gollum.intra.norang.ca> <20080228223845.GJ24573@odin.demosthenes.org> Reply-To: nicholas.dokos@hp.com Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JUs2J-00034A-DR for emacs-orgmode@gnu.org; Thu, 28 Feb 2008 18:19:35 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JUs2I-00032x-P6 for emacs-orgmode@gnu.org; Thu, 28 Feb 2008 18:19:34 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JUs2I-00032l-J3 for emacs-orgmode@gnu.org; Thu, 28 Feb 2008 18:19:34 -0500 Received: from g1t0029.austin.hp.com ([15.216.28.36]) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1JUs2I-0006fM-1X for emacs-orgmode@gnu.org; Thu, 28 Feb 2008 18:19:34 -0500 In-Reply-To: Your message of "Thu, 28 Feb 2008 16:38:46 CST." <20080228223845.GJ24573@odin.demosthenes.org> 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: Russell Adams Cc: emacs-orgmode@gnu.org Russell Adams wrote: > I'm kicking off zenity (GUI notification window) via shell-command and > putting it in the background. Emacs keeps opening a new window called > *Async Shell Command*, even though I thought I disabled that by > passing nil to the output buffer argument. > Try the following instead: (setq appt-display-format 'window) (setq appt-disp-window-function (function my-appt-disp-window)) (defun my-appt-disp-window (min-to-app new-time msg) (call-process "/home/nick/bin/popup.py" nil 0 nil min-to-app msg new-time)) This one calls my home-grown ``popupper'', so just change the string to call zenity, and change the args to what is needed. The 0 in the "nil 0 nil" part means discard any output and don't wait for the process to finish - see the documentation for call-process for more details. For more, check the list archives or worg: I had posted my method for popups to the list and Bastien has apparently put a pointer to it on worg somewhere. HTH, Nick