Re: [Orgmode] removal of appointments

2009-03-12 Thread Carsten Dominik


On Mar 12, 2009, at 3:02 PM, Richard Riley wrote:



I use

(run-at-time nil 300 'org-agenda-to-appt)
(appt-activate t)

to add org tasks to emacs appointment handling.

Is there a way for org to remove these entries when marked as done or
cancelled?


There is org-after-todo-state-change-hook which is run after
a state changes.  You could check

 (member state org-done-keywords)

and if yes, refresh the appointment list with

  (org-agenda-to-appt t)

This will re-generate the entire task list, you
will probably feel the impact.  I don't know a way to remove
individual entries.



While on the subject, is there any concept of an alarm in
org? Or is this just a scheduled item? It would be nice of there was a
way to trigger specific functions based on the tags  -e.g play wave  
file
for a reminder of a task of a certain type. Is there something like  
this
anyone can recommend or point me to? I would like to configure org  
as my

alarm clock too!


Isn't this exactly what appt does??

- Carsten



___
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] removal of appointments

2009-03-12 Thread Richard Riley
Carsten Dominik domi...@science.uva.nl writes:

 On Mar 12, 2009, at 3:02 PM, Richard Riley wrote:


 I use

 (run-at-time nil 300 'org-agenda-to-appt)
 (appt-activate t)

 to add org tasks to emacs appointment handling.

 Is there a way for org to remove these entries when marked as done or
 cancelled?

 There is org-after-todo-state-change-hook which is run after
 a state changes.  You could check

  (member state org-done-keywords)

 and if yes, refresh the appointment list with

   (org-agenda-to-appt t)

 This will re-generate the entire task list, you
 will probably feel the impact.  I don't know a way to remove
 individual entries.


 While on the subject, is there any concept of an alarm in
 org? Or is this just a scheduled item? It would be nice of there was a
 way to trigger specific functions based on the tags  -e.g play wave
 file
 for a reminder of a task of a certain type. Is there something like
 this
 anyone can recommend or point me to? I would like to configure org
 as my
 alarm clock too!

 Isn't this exactly what appt does??

Exactly? No. I guess I was just fishing to see if someone had
implemented something like a make a noise property with a sleep
feature for example that associated a certain property with a WAV/mp3
file and when the appointment is triggered it will play the audo file if
appropriate.



 - Carsten


-- 


___
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] removal of appointments

2009-03-12 Thread Alan E. Davis
Richard:

I want to preface this with a statement of truth: I don't know what I am
talking about.

On Fri, Mar 13, 2009 at 10:34 AM, Richard Riley
rileyrg...@googlemail.comwrote:


 I guess I was just fishing to see if someone had
 implemented something like a make a noise property with a sleep
 feature for example that associated a certain property with a WAV/mp3
 file and when the appointment is triggered it will play the audo file if
 appropriate.


All the same, I was able to hack together a simple little routine to start a
video in vlc from dired and also start an org-mode buffer with a timer at
the same time.

The elements that can make what you want to happen happen, do exist or could
be put together.  But you are on your own.  Just the same if you contact me
off the list I'll send a copy of what I put together (dired-vlc.el) and
maybe suggest which part would be useful for modifying to play an mp3.
Interestingly, the routines I borrowed from were designed around mplayer,
and they are simple.

As far as the trigger, I wouldn't know where to begin.

The sleep function would be possible too, but I was quite far out of my
depth even in what I had done, and up 'til now I have not gotten around to
trying to incorporate pausing into dired-vlc.el, although others have
indicated it is doable.

Alan

-- 
Alan Davis

An inviscid theory of flow renders the screw useless, but the need for one
non-existent. ---Lord Raleigh (John William Strutt), or
else his son, who was also a scientist.

It is undesirable to believe a proposition when
there is no ground whatsoever for supposing it is true.
 Bertrand Russell
___
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode