From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: Re: Wish: switch active time-stamps to inactive when CANCELED Date: Fri, 18 Jan 2013 09:07:01 -0500 Message-ID: <923.1358518021@alphaville> References: <2013-01-18T11-28-57@devnull.Karl-Voit.at> Reply-To: nicholas.dokos@hp.com Return-path: Received: from eggs.gnu.org ([208.118.235.92]:40344) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TwCb6-0007nu-RX for emacs-orgmode@gnu.org; Fri, 18 Jan 2013 09:07:09 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TwCb1-0001vq-QL for emacs-orgmode@gnu.org; Fri, 18 Jan 2013 09:07:08 -0500 Received: from g4t0017.houston.hp.com ([15.201.24.20]:1426) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TwCb1-0001vm-Lz for emacs-orgmode@gnu.org; Fri, 18 Jan 2013 09:07:03 -0500 In-Reply-To: Message from Karl Voit of "Fri, 18 Jan 2013 11:34:27 +0100." <2013-01-18T11-28-57@devnull.Karl-Voit.at> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: news1142@Karl-Voit.at Cc: emacs-orgmode@gnu.org Karl Voit wrote: > Hi! > > I tend to keep events that I do not attend in my calendar for > archiving reasons. But I switch their status to CANCELED. > Unfortunately, those events still appear on my Google calendar and > so forth. I get my usual reminders and it messes up my free/busy > list. > > Therefore, I am thinking that canceled events should turn their > active time-stamps into inactive with an Org-mode option. This way, > I can recall them in my agenda by typing ']' (show inactive > time-stamps) but they do not interfere with my daily workflow. > > What do you think of such an option for Org-mode? > You can probably accomplish this with org-after-todo-state-change-hook: Write a function that checks if org-state is "CANCELED", and if so looks for active timestamps and calls org-toggle-timestamp-type on them. Then add the function to the hook. And don't forget to post the code here as well as on Worg :-) Nick