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 16:59:58 -0500 Message-ID: <6810.1358546398@alphaville.americas.hpqcorp.net> References: <2013-01-18T11-28-57@devnull.Karl-Voit.at> <923.1358518021@alphaville> <2013-01-18T22-22-21@devnull.Karl-Voit.at> Reply-To: nicholas.dokos@hp.com Return-path: Received: from eggs.gnu.org ([208.118.235.92]:47901) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TwJys-0007QC-EN for emacs-orgmode@gnu.org; Fri, 18 Jan 2013 17:00:11 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TwJyo-0007dq-5u for emacs-orgmode@gnu.org; Fri, 18 Jan 2013 17:00:09 -0500 Received: from g4t0016.houston.hp.com ([15.201.24.19]:41651) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TwJyo-0007US-1c for emacs-orgmode@gnu.org; Fri, 18 Jan 2013 17:00:06 -0500 In-Reply-To: Message from Karl Voit of "Fri, 18 Jan 2013 22:24:47 +0100." <2013-01-18T22-22-21@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: > * Nick Dokos wrote: > > > > 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. > > Oh, I would have guessed this algorithm overview/principle as well > :-) > It is more than an algorithm overview/principle: there are specific suggestions in there - which hook to use, the state variable that you need to check and the function to toggle the timestamp type are the "real" thing: nothing vaporous about them. > But unfortunately, I know that little of ELISP, that I am not able > to implement it by myself :-( > Time to learn some then - and there is no better way than scratching your own itch :-) Nick