* [agenda] %% questions
@ 2011-04-05 19:51 Michael Brand
2011-05-03 14:58 ` Matt Lundin
0 siblings, 1 reply; 3+ messages in thread
From: Michael Brand @ 2011-04-05 19:51 UTC (permalink / raw)
To: Org Mode
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?
Question about item 4: The user manual tells that %% must start at the
first column. What would be required to allow indentation?
* 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
Michael
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [agenda] %% questions
2011-04-05 19:51 [agenda] %% questions Michael Brand
@ 2011-05-03 14:58 ` Matt Lundin
2011-05-11 6:20 ` Michael Brand
0 siblings, 1 reply; 3+ messages in thread
From: Matt Lundin @ 2011-05-03 14:58 UTC (permalink / raw)
To: Michael Brand; +Cc: Org Mode
Michael Brand <michael.ch.brand@gmail.com> 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
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [agenda] %% questions
2011-05-03 14:58 ` Matt Lundin
@ 2011-05-11 6:20 ` Michael Brand
0 siblings, 0 replies; 3+ messages in thread
From: Michael Brand @ 2011-05-11 6:20 UTC (permalink / raw)
To: Matt Lundin; +Cc: Org Mode
Hi Matt
On Tue, May 3, 2011 at 16:58, Matt Lundin <mdl@imapmail.org> wrote:
> 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)>
Good to know. To add the time I'm now using this format.
> * Text here will not appear in agenda
> %%(diary-float t 2 1) 12:00 Monthly appointment
Thank you for the explanations.
Michael
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2011-05-11 6:20 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-04-05 19:51 [agenda] %% questions Michael Brand
2011-05-03 14:58 ` Matt Lundin
2011-05-11 6:20 ` Michael Brand
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).