From mboxrd@z Thu Jan 1 00:00:00 1970 From: Niels Giesen Subject: Re: Re: How to display a diary entry in agenda week view only "today" Date: Mon, 11 Apr 2011 14:55:24 +0200 Message-ID: References: <20110411013620.3a20f839@bhishma.homelinux.net> <4DA2ECBC.6040002@diplan.de> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Return-path: Received: from [140.186.70.92] (port=52417 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Q9GeO-0002iC-VX for emacs-orgmode@gnu.org; Mon, 11 Apr 2011 08:55:31 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Q9GeM-0000ab-DQ for emacs-orgmode@gnu.org; Mon, 11 Apr 2011 08:55:27 -0400 Received: from mail-qy0-f176.google.com ([209.85.216.176]:43833) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Q9GeM-0000a1-8E for emacs-orgmode@gnu.org; Mon, 11 Apr 2011 08:55:26 -0400 Received: by qyk30 with SMTP id 30so4501127qyk.0 for ; Mon, 11 Apr 2011 05:55:24 -0700 (PDT) In-Reply-To: <4DA2ECBC.6040002@diplan.de> 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: Rainer Stengele Cc: emacs-orgmode@gnu.org date is a dynamically bound variable at the time of evaluation. On Mon, Apr 11, 2011 at 1:57 PM, Rainer Stengele wrote: > Am 11.04.2011 10:36, schrieb Suvayu Ali: >> On Mon, 11 Apr 2011 08:52:52 +0200 >> Rainer Stengele wrote: >> >>> Hi! >>> >>> In one of my org agenda files I have >>> >>> #+CATEGORY: Sunrise >>> &%%(diary-sunrise-sunset) >>> >>> Now, when I am in weekly agenda view the sunrise-sunset shows under >>> every day. This is kind of too much line noise and distracting for me >>> - I would like to only see the entry for "today". >>> >>> Is there a way to restrict the display of such a diary entry in the >>> weekly agenda view to only today? >>> >> >> How about this, >> >> %%(if (calendar-date-equal date (calendar-current-date)) (diary-sunrise-sunset)) >> >>> Regards, >>> Rainer >>> >> > Perfect, thanks. > > I can find the other functions in calendar.el, > but where is "date" from? > > Best, > Rainer > > -- http://pft.github.com