From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: Adding a timestamp after refiling Date: Thu, 25 Mar 2010 07:51:59 +0100 Message-ID: References: Mime-Version: 1.0 (Apple Message framework v936) Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NugvN-0002Iu-7t for emacs-orgmode@gnu.org; Thu, 25 Mar 2010 02:52:13 -0400 Received: from [140.186.70.92] (port=36448 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NugvH-0002Dj-Pe for emacs-orgmode@gnu.org; Thu, 25 Mar 2010 02:52:12 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1NugvG-0007Xj-7A for emacs-orgmode@gnu.org; Thu, 25 Mar 2010 02:52:07 -0400 Received: from mail-bw0-f211.google.com ([209.85.218.211]:47799) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NugvG-0007XV-0h for emacs-orgmode@gnu.org; Thu, 25 Mar 2010 02:52:06 -0400 Received: by bwz3 with SMTP id 3so6547385bwz.9 for ; Wed, 24 Mar 2010 23:52:04 -0700 (PDT) In-Reply-To: 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: Charles Cave Cc: emacs-orgmode@gnu.org Hi Charles, On Mar 25, 2010, at 3:43 AM, Charles Cave wrote: > I use a task planning methodology From Mark Forster called > "Autofocus" (http://www.markforster.net/autofocus-index/) > > Part of the workflow is rewriting a task at the end of the > list of things to do - in orgmode terms - refiling a task. > > Would it be possible to add functionality to add a date/time stamp > when a task is refiled? I have looked at the Tracking > TODO state changes documentation in section 5.3.2 and this style > of logging would be good. > > I am not a Lisp programmer but I have heard the term "hook" in regard > to org-mode, so I assume there is some point in the code for each > function to add extra functionality before or after a function is > done? For example, after executing the org-refile command, add a date > time stamp to the heading. This requires small changes in a few places in org.el, so a single hook would not be enough here. I have just added a variable `org-log-refile' which does what you asked for. Best wishes - Carsten