From mboxrd@z Thu Jan 1 00:00:00 1970 From: Konrad Hinsen Subject: Re: org google weather Date: Sun, 6 Mar 2011 11:33:34 +0100 Message-ID: <90C021BE-F916-4C6B-B041-F2FCB859443D@fastmail.net> References: <87oc5rlwc4.wl%lists@700c.org> <4D70A577.4000509@manor-farm.org> <80k4gfnth7.fsf@somewhere.org> <4D70CCB6.5080101@manor-farm.org> <8736.1299256681@alphaville.dokosmarshall.org> <4427.1299270361@alphaville.usa.hp.com> <8739n1j2ec.fsf@gnu.org> <874o7hfqc1.fsf@gnu.org> <529E07B0-65BD-4235-A8DA-69F2D8938462@fastmail.net> <10316.1299369084@alphaville.dokosmarshall.org> Mime-Version: 1.0 (Apple Message framework v936) Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Return-path: Received: from [140.186.70.92] (port=48113 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PwBHW-0004VW-NU for emacs-orgmode@gnu.org; Sun, 06 Mar 2011 05:33:47 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PwBHS-0005dF-E7 for emacs-orgmode@gnu.org; Sun, 06 Mar 2011 05:33:46 -0500 Received: from smtp3-g21.free.fr ([212.27.42.3]:41651) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PwBHR-0005cG-QW for emacs-orgmode@gnu.org; Sun, 06 Mar 2011 05:33:42 -0500 In-Reply-To: <10316.1299369084@alphaville.dokosmarshall.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: nicholas.dokos@hp.com Cc: Bastien , Org Mode Mailing List On 6 Mar 2011, at 00:51, Nick Dokos wrote: > Konrad Hinsen wrote: > >> What keeps me from writing that function right now is that I don't >> know the internals of org-mode well enough to know how to check for a >> propery or tag. I expect to spend an hour reading source code, and >> that's for another day :-) > > Before diving into the code, check out Appendix A, "Hacking", and in > particular section A.9, "Using the property API", in the Org manual. Thanks for the useful hint! I am not used to code that comes with a hacker's manual. BTW, I found a very simple solution to my original problem of having sunrise and sunset only in the day view: %%(when (eq span 'day) (diary-sunrise)) %%(when (eq span 'day) (diary-sunset)) Fortunately, because apparently org-agenda-skip-function is not called for diary-style entries. But I'll continue exploring that approach for other types of entries. Konrad.