From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: Re: org google weather Date: Fri, 04 Mar 2011 17:29:50 -0500 Message-ID: <6755.1299277790@alphaville.usa.hp.com> References: <87oc5rlwc4.wl%lists@700c.org> <4D70A577.4000509@manor-farm.org> <87lj0uinin.wl%lists@700c.org> <6122.1299276355@alphaville.usa.hp.com> Reply-To: nicholas.dokos@hp.com Return-path: Received: from [140.186.70.92] (port=36444 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PvdVU-0008PW-9O for emacs-orgmode@gnu.org; Fri, 04 Mar 2011 17:29:57 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PvdVS-00017V-2n for emacs-orgmode@gnu.org; Fri, 04 Mar 2011 17:29:56 -0500 Received: from g4t0014.houston.hp.com ([15.201.24.17]:21425) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PvdVR-00017K-Vr for emacs-orgmode@gnu.org; Fri, 04 Mar 2011 17:29:54 -0500 In-Reply-To: Message from Nick Dokos of "Fri, 04 Mar 2011 17:05:55 EST." <6122.1299276355@alphaville.usa.hp.com> 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 Cc: Simon Brown , nicholas.dokos@hp.com, emacs-orgmode@gnu.org Nick Dokos wrote: > > Just write your own function to take the individual results and concatenate= > them, e.g. > > (defun full-catastrophe () > (format "%s :: %s" (org-google-weather) (diary-sunrise-sunset))) > > and add > > %%(full-catastrophe) > > to some agenda file. > BTW, I noticed that semicolons followed by spaces cause trouble: --8<---------------cut here---------------start------------->8--- (defun full-catastrophe () (format "a; b")) --8<---------------cut here---------------end--------------->8--- puts "a" on one agenda line and "b" in another. It does not happen if there is no space after the semicolon. And in case you are wondering, I saw it when trying Ian's (diary-day-of-year) example, which includes "; " in its output. Nick