emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Matt Lundin <mdl@imapmail.org>
To: Crni Gorac <cgorac@gmail.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: repetitive activity over a period of time, starting at the same time each day
Date: Sat, 07 Nov 2009 13:37:28 -0500	[thread overview]
Message-ID: <m2eioaqizb.fsf@fastmail.fm> (raw)
In-Reply-To: <c02b565a0911061151n2a82fe7cmd70008f6a17c935e@mail.gmail.com> (Crni Gorac's message of "Fri, 6 Nov 2009 20:51:29 +0100")

Crni Gorac <cgorac@gmail.com> writes:

> On Fri, Nov 6, 2009 at 5:51 PM, Matt Lundin <mdl@imapmail.org> wrote:
>> Crni Gorac <cgorac@gmail.com> writes:
>>
>>> How to specify a time interval for a TODO that will say span over two
>>> weeks, working days only, and that will start each day at 10am.  I
>>> tried with timestamps available in org-mode, as well as with Emacs
>>> diary timestamps, but to no avail.  Any suggestion?
>>>
>>
>> You could use a diary sexp:
>>
>> --8<---------------cut here---------------start------------->8---
>> * 10:00am Every weekday for two weeks
>> <%%(and (memq (calendar-day-of-week date) '(1 2 3 4 5)) (diary-block 11 9 2009 11 20 2009))>
>> --8<---------------cut here---------------end--------------->8---
>>
>> - Matt
>>
>
> Thanks Matt, this is almost there; however, if this is a TODO item,
> and if I mark it done, than it's marked done once and for all, and not
> only for given day, like org-mode timestamps with repeater interval.
> Any further suggestions here?  

Ah. I see. I don't think there's any way make an item with a diary sexp
behave like a recurring timestamp. I think the best solution here would
be to create multiple items w/ todos, as Stephan suggested in his post.

> Maybe I'm wrong, but it seems very strange to me that a need for alike
> timestamps was not recognized in org-mode - for example, how would one
> build a TODO item for something like a class spanning say over two
> months and with class hours say Mon and Wed between 10am and 11am?

I imagine one way to do this would be to create two items with repeating
timestamps:

--8<---------------cut here---------------start------------->8---
* TODO 10:00am Class
  SCHEDULED: <2009-11-09 Mon +1w>
* TODO 10:00am Class
  SCHEDULED: <2009-11-11 Wed +1w>
--8<---------------cut here---------------end--------------->8---

>
> Also, is this placing time at the start of item, and having it
> recognized when agenda view built some kind of special syntax?  I
> wasn't able to find it mentioned in org-mode documentation...

I'm sorry to say that I'm not sure where it's documented. But org-mode
does scan the headline for time of day information.

Best,
Matt

      reply	other threads:[~2009-11-07 18:37 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-11-06 10:10 repetitive activity over a period of time, starting at the same time each day Crni Gorac
2009-11-06 10:47 ` Stephan Schmitt
2009-11-06 16:51 ` Matt Lundin
2009-11-06 19:51   ` Crni Gorac
2009-11-07 18:37     ` Matt Lundin [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=m2eioaqizb.fsf@fastmail.fm \
    --to=mdl@imapmail.org \
    --cc=cgorac@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).