* implement appt warntime
@ 2012-07-16 10:46 Ivan Kanis
2012-07-17 20:42 ` Moritz Ulrich
2012-08-01 14:10 ` Bastien
0 siblings, 2 replies; 6+ messages in thread
From: Ivan Kanis @ 2012-07-16 10:46 UTC (permalink / raw)
To: Bastien Guerry; +Cc: org mode
Hi Bastien,
I had a look at org-notify.el. It's over engineered for my need. If you
recall I submitted a patch that added warntime on the header. It's not
pretty but it works for me.
I could use properties instead. For example:
** an appointment with a reminder 5 minutes before 10:00
SCHEDULED: <2012-07-16 Mon 10:00>
:PROPERTIES:
:WARNTIME: 5
:END:
Would you integrate such a functionality? I might code it if I find the
time.
Take care,
--
Ivan Kanis
http://ivan.kanis.fr
A great teacher is one who realizes that he himself is also a student
and whose goal is not dictate the answers, but to stimulate his
students creativity enough so that they go out and find the answers
themselves.
-- Herbie Hancock
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: implement appt warntime
2012-07-16 10:46 implement appt warntime Ivan Kanis
@ 2012-07-17 20:42 ` Moritz Ulrich
2012-08-01 14:10 ` Bastien
1 sibling, 0 replies; 6+ messages in thread
From: Moritz Ulrich @ 2012-07-17 20:42 UTC (permalink / raw)
To: Ivan Kanis; +Cc: Bastien Guerry, org mode
I haven't had a look at the patch, but this property looks like a very
nice and easy solution.
+1.
Ivan Kanis <ivan.kanis@googlemail.com> writes:
> Hi Bastien,
>
> I had a look at org-notify.el. It's over engineered for my need. If you
> recall I submitted a patch that added warntime on the header. It's not
> pretty but it works for me.
>
> I could use properties instead. For example:
>
> ** an appointment with a reminder 5 minutes before 10:00
> SCHEDULED: <2012-07-16 Mon 10:00>
> :PROPERTIES:
> :WARNTIME: 5
> :END:
>
> Would you integrate such a functionality? I might code it if I find the
> time.
>
> Take care,
--
Moritz Ulrich
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: implement appt warntime
2012-07-16 10:46 implement appt warntime Ivan Kanis
2012-07-17 20:42 ` Moritz Ulrich
@ 2012-08-01 14:10 ` Bastien
2012-08-19 19:09 ` Ivan Kanis
1 sibling, 1 reply; 6+ messages in thread
From: Bastien @ 2012-08-01 14:10 UTC (permalink / raw)
To: Ivan Kanis; +Cc: org mode
Hi Ivan,
Ivan Kanis <ivan.kanis@googlemail.com> writes:
> I had a look at org-notify.el. It's over engineered for my need. If you
> recall I submitted a patch that added warntime on the header. It's not
> pretty but it works for me.
>
> I could use properties instead. For example:
>
> ** an appointment with a reminder 5 minutes before 10:00
> SCHEDULED: <2012-07-16 Mon 10:00>
> :PROPERTIES:
> :WARNTIME: 5
> :END:
I've implemented something along this idea, using APPT_WARNTIME instead
to make sure this is only useful when adding the entry to the list of
apptointment with `appt-add'.
Also, "W" is a new speedy command to insert this property quickly.
Please test and report any problem.
Note that Emacs >=23.3 is needed for this to work properly.
Thanks for this idea!
--
Bastien
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: implement appt warntime
2012-08-01 14:10 ` Bastien
@ 2012-08-19 19:09 ` Ivan Kanis
2012-08-19 19:50 ` Bastien
0 siblings, 1 reply; 6+ messages in thread
From: Ivan Kanis @ 2012-08-19 19:09 UTC (permalink / raw)
To: Bastien; +Cc: org mode
Hi Bastien,
Bastien <bzg@gnu.org> a écrit
> Hi Ivan,
>
> Ivan Kanis <ivan.kanis@googlemail.com> writes:
>
>> I could use properties instead. For example:
>>
>> ** an appointment with a reminder 5 minutes before 10:00
>> SCHEDULED: <2012-07-16 Mon 10:00>
>> :PROPERTIES:
>> :WARNTIME: 5
>> :END:
>
> I've implemented something along this idea, using APPT_WARNTIME instead
> to make sure this is only useful when adding the entry to the list of
> apptointment with `appt-add'.
>
> Please test and report any problem.
I tried is this evening and unfortunately it's not working.
I think the problem is in the following line in the function
org-agenda-to-appt:
(org-entry-get (point) "APPT_WARNTIME"))
I don't think (point) is in the right place after the parsing is done in
org-agenda-get-day-entries.
I guess that from the entries we can find the proper point in the
correct buffer.
Take care,
--
Ivan Kanis
http://ivan.kanis.fr
Debugging is twice as hard as writing the code in the first place.
Therefore, if you write the code as cleverly as possible, you are, by
definition, not smart enough to debug it.
-- Brian Kernighan
I am listening to "The XX - Stars".
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2012-08-21 18:37 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-07-16 10:46 implement appt warntime Ivan Kanis
2012-07-17 20:42 ` Moritz Ulrich
2012-08-01 14:10 ` Bastien
2012-08-19 19:09 ` Ivan Kanis
2012-08-19 19:50 ` Bastien
2012-08-21 18:36 ` Ivan Kanis
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).