From mboxrd@z Thu Jan 1 00:00:00 1970 From: Matt Lundin Subject: Re: [agenda] %% questions Date: Tue, 03 May 2011 10:58:56 -0400 Message-ID: <87sjsvsudr.fsf@fastmail.fm> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([140.186.70.92]:56146) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QHH41-0008Je-HW for emacs-orgmode@gnu.org; Tue, 03 May 2011 10:59:02 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QHH40-00031W-Cv for emacs-orgmode@gnu.org; Tue, 03 May 2011 10:59:01 -0400 Received: from out2.smtp.messagingengine.com ([66.111.4.26]:51345) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QHH40-00031K-78 for emacs-orgmode@gnu.org; Tue, 03 May 2011 10:59:00 -0400 In-Reply-To: (Michael Brand's message of "Tue, 5 Apr 2011 21:51:40 +0200") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Michael Brand Cc: Org Mode Michael Brand writes: > Hi all > > The items 2 and 4 in the following example are not shown in the agenda > with today's release_7.5-135-g7021f70. > > Question about item 2: Is this a bug since the items 1 and 3 are > shown? At the moment, time of day strings are not allowed within brackets. So one has a choice between the following: * 12pm Monthly appointment <%%(diary-float t 2 1)> * Text here will not appear in agenda %%(diary-float t 2 1) 12:00 Monthly appointment In other words, if brackets are present, the sexp string will be taken from the headline. If brackets are not present, the sexp string will must follow the sexp (and the headline will be disregarded). Allowing time-of-day strings within timestamp brackets would require hacking the regexp in org-agenda-get-timestamps. > Question about item 4: The user manual tells that %% must start at the > first column. What would be required to allow indentation? The regexp (line 4783 in org-agenda.el) looks for the sexp at the beginning of the line: "^&?%%(". See also the font-lock sexp on line 5570 on org.el. My guess is that this is to prevent potential conflicts with other markup, though I can't think what that might be off the top of my head. Perhaps Carsten would know the reason... Best, Matt > * item 1: shown > SCHEDULED: <%%(diary-float t 2 1) 12:00> > * item 2: not shown > <%%(diary-float t 2 1) 12:00> > * item 3: shown > <%%(diary-float t 2 1)> > * item 4: not shown > %%(diary-anniversary 04 05 2000) item 4 is %d years old > * item 5: shown > %%(diary-anniversary 04 05 2000) item 5 is %d years old