From mboxrd@z Thu Jan 1 00:00:00 1970 From: Richard Riley Subject: Re: removal of appointments Date: Fri, 13 Mar 2009 01:34:38 +0100 Message-ID: <49b9aa22.09c5660a.4e12.ffffba3d@mx.google.com> References: <49b915ee.096c100a.16b9.788b@mx.google.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LhvMO-0007MU-Re for emacs-orgmode@gnu.org; Thu, 12 Mar 2009 20:34:48 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LhvMK-0007JX-UB for emacs-orgmode@gnu.org; Thu, 12 Mar 2009 20:34:48 -0400 Received: from [199.232.76.173] (port=55295 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LhvMK-0007JM-Lt for emacs-orgmode@gnu.org; Thu, 12 Mar 2009 20:34:44 -0400 Received: from mail-bw0-f172.google.com ([209.85.218.172]:54964) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LhvMK-0000b5-3E for emacs-orgmode@gnu.org; Thu, 12 Mar 2009 20:34:44 -0400 Received: by bwz20 with SMTP id 20so2449702bwz.42 for ; Thu, 12 Mar 2009 17:34:42 -0700 (PDT) In-Reply-To: (Carsten Dominik's message of "Thu, 12 Mar 2009 17:42:32 +0100") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Carsten Dominik Cc: org-mode , Richard Riley Carsten Dominik 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 > --