From mboxrd@z Thu Jan 1 00:00:00 1970 From: Karl Voit Subject: Re: Wish: switch active time-stamps to inactive when CANCELED Date: Fri, 18 Jan 2013 22:24:47 +0100 Message-ID: <2013-01-18T22-22-21@devnull.Karl-Voit.at> References: <2013-01-18T11-28-57@devnull.Karl-Voit.at> <923.1358518021@alphaville> Reply-To: news1142@Karl-Voit.at Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([208.118.235.92]:42837) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TwJVX-0002X8-RC for emacs-orgmode@gnu.org; Fri, 18 Jan 2013 16:29:53 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TwJVW-00087l-DV for emacs-orgmode@gnu.org; Fri, 18 Jan 2013 16:29:51 -0500 Received: from plane.gmane.org ([80.91.229.3]:50862) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TwJVW-00087a-6k for emacs-orgmode@gnu.org; Fri, 18 Jan 2013 16:29:50 -0500 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1TwJVl-0005Kx-Ap for emacs-orgmode@gnu.org; Fri, 18 Jan 2013 22:30:05 +0100 Received: from mail.michael-prokop.at ([88.198.6.110]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 18 Jan 2013 22:30:05 +0100 Received: from news1142 by mail.michael-prokop.at with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 18 Jan 2013 22:30:05 +0100 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: emacs-orgmode@gnu.org * 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 :-) But unfortunately, I know that little of ELISP, that I am not able to implement it by myself :-( -- Karl Voit