From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: removal of appointments Date: Thu, 12 Mar 2009 17:42:32 +0100 Message-ID: References: <49b915ee.096c100a.16b9.788b@mx.google.com> Mime-Version: 1.0 (Apple Message framework v930.3) Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Lhowh-0002VE-LY for emacs-orgmode@gnu.org; Thu, 12 Mar 2009 13:43:51 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Lhowh-0002Ux-3B for emacs-orgmode@gnu.org; Thu, 12 Mar 2009 13:43:51 -0400 Received: from [199.232.76.173] (port=55607 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Lhowg-0002Uu-V2 for emacs-orgmode@gnu.org; Thu, 12 Mar 2009 13:43:50 -0400 Received: from mail-fx0-f176.google.com ([209.85.220.176]:40299) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Lhowg-00045C-Go for emacs-orgmode@gnu.org; Thu, 12 Mar 2009 13:43:50 -0400 Received: by fxm24 with SMTP id 24so2002032fxm.42 for ; Thu, 12 Mar 2009 10:43:48 -0700 (PDT) In-Reply-To: <49b915ee.096c100a.16b9.788b@mx.google.com> 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: Richard Riley Cc: org-mode 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