* Org-Mode S-expressions
@ 2007-10-08 16:10 Joel J. Adamson
2007-10-08 20:19 ` Bastien
[not found] ` <mailman.1844.1191871203.18990.help-gnu-emacs@gnu.org>
0 siblings, 2 replies; 6+ messages in thread
From: Joel J. Adamson @ 2007-10-08 16:10 UTC (permalink / raw)
To: help-gnu-emacs
Howdy,
I'm using Emacs 23.0.0.1 on Slackware Linux 12.0.
I'm trying to set up a unique Org Mode situation here. I work for two
different researchers, with specific sets of projects for each one. I
work for Researcher A Monday and Tuesday, and WEdnesday until Noon.
Then I switch over to Researcher B until the end of Friday. I'd like
these to show up in the Agenda at the specified times and repeat every
day at the appropriate time. I tried timestamps like
<2007-10-08 Mon 9:00>--<2007-10-10 Wed 12:00>
And the latest is diary-style s-expression, based on one I found in
the Emacs manual for diary:
<%%(let ((dayname (nth 7 (decode-time (current-time))))
(hour (nth 3 (decode-time (current-time)))))
(or (memq dayname '(1 2))
(and (equal dayname 3) (< hour 12))))>
Now, I noticed that the angle-brackets and less-than sign will
probably mix things up.
What's the most effective way to accomplish this? Please point me to
the best tutorial or explanation for timestamps.
Thanks,
Joel
--
Joel J. Adamson
Biostatistician
Pediatric Psychopharmacology Research Unit
Massachusetts General Hospital
Boston, MA 02114
(617) 643-1432
(303) 880-3109
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Org-Mode S-expressions
2007-10-08 16:10 Org-Mode S-expressions Joel J. Adamson
@ 2007-10-08 20:19 ` Bastien
2007-10-08 20:21 ` Bastien
[not found] ` <mailman.1844.1191871203.18990.help-gnu-emacs@gnu.org>
1 sibling, 1 reply; 6+ messages in thread
From: Bastien @ 2007-10-08 20:19 UTC (permalink / raw)
To: Joel J. Adamson; +Cc: help-gnu-emacs
jadamson@partners.org (Joel J. Adamson) writes:
> <%%(let ((dayname (nth 7 (decode-time (current-time))))
> (hour (nth 3 (decode-time (current-time)))))
> (or (memq dayname '(1 2))
> (and (equal dayname 3) (< hour 12))))>
(nth 7 (decode-time (current-time)))
^
... should be 6 no?
> Now, I noticed that the angle-brackets and less-than sign will
> probably mix things up.
I don't know what version of Org you're using but since Org's
development is quite fast it might be a good idea to check the
lastest release:
http://orgmode.org/
And maybe you can use Org's own syntax for repeating events:
,----[ (info "(Org)Time stamps") ]
| TIME STAMP WITH REPEATER INTERVAL
| A time stamp may contain a _repeater interval_, indicating that it
| applies not only on the given date, but again and again after a
| certain interval of N days (d), weeks (w), months(m), or years(y).
| The following will show up in the agenda every Wednesday:
|
| * Pick up Sam at school <2007-05-16 Wed 12:30 +1w>
`----
--
Bastien
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Org-Mode S-expressions
2007-10-08 20:19 ` Bastien
@ 2007-10-08 20:21 ` Bastien
0 siblings, 0 replies; 6+ messages in thread
From: Bastien @ 2007-10-08 20:21 UTC (permalink / raw)
To: Joel J. Adamson; +Cc: help-gnu-emacs
Bastien <bzg@altern.org> writes:
> And maybe you can use Org's own syntax for repeating events:
>
> ,----[ (info "(Org)Time stamps") ]
> | TIME STAMP WITH REPEATER INTERVAL
> | A time stamp may contain a _repeater interval_, indicating that it
> | applies not only on the given date, but again and again after a
> | certain interval of N days (d), weeks (w), months(m), or years(y).
> | The following will show up in the agenda every Wednesday:
> |
> | * Pick up Sam at school <2007-05-16 Wed 12:30 +1w>
> `----
Or maybe check the online manual for this:
http://orgmode.org/org.html#Repeated-tasks
--
Bastien
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Org-Mode S-expressions
[not found] ` <mailman.1844.1191871203.18990.help-gnu-emacs@gnu.org>
@ 2007-10-09 13:55 ` Joel J. Adamson
2007-10-09 16:19 ` Joel J. Adamson
2007-10-10 6:35 ` Bastien
0 siblings, 2 replies; 6+ messages in thread
From: Joel J. Adamson @ 2007-10-09 13:55 UTC (permalink / raw)
To: help-gnu-emacs
Bastien <bzg@altern.org> writes:
> jadamson@partners.org (Joel J. Adamson) writes:
>
>> <%%(let ((dayname (nth 7 (decode-time (current-time))))
>> (hour (nth 3 (decode-time (current-time)))))
>> (or (memq dayname '(1 2))
>> (and (equal dayname 3) (< hour 12))))>
>
> (nth 7 (decode-time (current-time)))
> ^
>
> ... should be 6 no?
7 gave me the hour: that is strange though...
>
>> Now, I noticed that the angle-brackets and less-than sign will
>> probably mix things up.
>
> I don't know what version of Org you're using but since Org's
> development is quite fast it might be a good idea to check the
> lastest release:
>
I'm using whichever version is included with Emacs CVS.
> And maybe you can use Org's own syntax for repeating events:
Yeah, I tried that and all I get is that it shows up once with a
single time stamp. I'd rather have it show (metaphorically) "Today is
the day that you're working for Dr. Frankenstein."
Thanks for your help Bastien,
Joel
--
Joel J. Adamson
Biostatistician
Pediatric Psychopharmacology Research Unit
Massachusetts General Hospital
Boston, MA 02114
(617) 643-1432
(303) 880-3109
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Org-Mode S-expressions
2007-10-09 13:55 ` Joel J. Adamson
@ 2007-10-09 16:19 ` Joel J. Adamson
2007-10-10 6:35 ` Bastien
1 sibling, 0 replies; 6+ messages in thread
From: Joel J. Adamson @ 2007-10-09 16:19 UTC (permalink / raw)
To: help-gnu-emacs
jadamson@partners.org (Joel J. Adamson) writes:
> Bastien <bzg@altern.org> writes:
>
>> jadamson@partners.org (Joel J. Adamson) writes:
>>
>>> <%%(let ((dayname (nth 7 (decode-time (current-time))))
>>> (hour (nth 3 (decode-time (current-time)))))
>>> (or (memq dayname '(1 2))
>>> (and (equal dayname 3) (< hour 12))))>
>>
>> (nth 7 (decode-time (current-time)))
>> ^
>>
>> ... should be 6 no?
>
> 7 gave me the hour: that is strange though...
I mean day...I'll read my own code in the future.
Joel
--
Joel J. Adamson
Biostatistician
Pediatric Psychopharmacology Research Unit
Massachusetts General Hospital
Boston, MA 02114
(617) 643-1432
(303) 880-3109
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Org-Mode S-expressions
2007-10-09 13:55 ` Joel J. Adamson
2007-10-09 16:19 ` Joel J. Adamson
@ 2007-10-10 6:35 ` Bastien
1 sibling, 0 replies; 6+ messages in thread
From: Bastien @ 2007-10-10 6:35 UTC (permalink / raw)
To: Joel J. Adamson; +Cc: help-gnu-emacs
jadamson@partners.org (Joel J. Adamson) writes:
> 7 gave me the day: that is strange though...
Yes, very strange!
,----[ decode-time ]
| Decode a time value as (SEC MINUTE HOUR DAY MONTH YEAR DOW DST ZONE).
`----
> I'm using whichever version is included with Emacs CVS.
From memory, that is 4.67c.
>> And maybe you can use Org's own syntax for repeating events:
>
> Yeah, I tried that and all I get is that it shows up once with a
> single time stamp. I'd rather have it show (metaphorically) "Today is
> the day that you're working for Dr. Frankenstein."
I strongly suggest you try the latest Org. If there is something wrong
with repeating tasks, then please send a bug report to the OrgMode list:
emacs-orgmode@gnu.org - the is *very* active and responsive.
http://news.gmane.org/gmane.emacs.orgmode
Best,
--
Bastien
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2007-10-10 6:35 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-10-08 16:10 Org-Mode S-expressions Joel J. Adamson
2007-10-08 20:19 ` Bastien
2007-10-08 20:21 ` Bastien
[not found] ` <mailman.1844.1191871203.18990.help-gnu-emacs@gnu.org>
2007-10-09 13:55 ` Joel J. Adamson
2007-10-09 16:19 ` Joel J. Adamson
2007-10-10 6:35 ` Bastien
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).