From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: Feature improvement request: state change logging Date: Fri, 13 Feb 2009 08:25:05 +0100 Message-ID: <04073AA1-6DDA-45BC-848D-162B62079F3A@uva.nl> References: <49930235.6050306@gmail.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 1LXsQF-0006et-Cb for emacs-orgmode@gnu.org; Fri, 13 Feb 2009 02:25:15 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LXsQE-0006eh-R3 for emacs-orgmode@gnu.org; Fri, 13 Feb 2009 02:25:15 -0500 Received: from [199.232.76.173] (port=59375 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LXsQE-0006ee-OR for emacs-orgmode@gnu.org; Fri, 13 Feb 2009 02:25:14 -0500 Received: from mail-fx0-f16.google.com ([209.85.220.16]:38166) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LXsQE-0005DN-Cv for emacs-orgmode@gnu.org; Fri, 13 Feb 2009 02:25:14 -0500 Received: by mail-fx0-f16.google.com with SMTP id 9so2768799fxm.18 for ; Thu, 12 Feb 2009 23:25:14 -0800 (PST) In-Reply-To: <49930235.6050306@gmail.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: Wanrong Lin Cc: emacs org-mode mailing list On Feb 11, 2009, at 5:52 PM, Wanrong Lin wrote: > Hi, > > My TODO sequence is set up as following: > > (setq org-todo-keywords '((sequence "TODO(t)" "STARTED(s!)" > "WAITING(w@/!)" "MAYBE(m/!)" "DELEGATED(g@/!)" "DEFERRED(d!/!)" > "HOLD(h!/!)" "|" "DONE(x)" "CANCELED(c)"))) > > The state change logging is great, but I wonder whether we can > further improve it: > > 1. Can we also include the original state in the log message? > i.e.: instead of having - State "DEFERRED" [2009-02-11 Wed > 11:38] > we can have > - State "DEFERRED" from "HOLD" [2009-02-11 Wed 11:38] > > The message will be clearer, and useful even when somebody edited > the TODO keyword in place without using the "org-todo" command (in > that case, simply looking at all the "destination states" in the log > message does not give us the right information). This strikes me like a useful idea, in particular if you are jumping between states, or if only some states record logging info. So I have added this capability. If you are configuring the variable `org-log-note-headings', use the %S (capital S) as a place holder for the old state. > 2. Can we put all of those state change history logging messages > into a drawer like "STATE-HIST" (when the drawer is defined in org- > drawers), so it is less intrusive in the file? I do like the idea to be able to put state changes into a drawer, but I do not think that making it dependent on what it is org-drawers is good. So lets use a separate variable: If you configure org-log-state-notes-into-drawer, you can get all new state changes into a drawer (sorry, no automatic wrapping of old ones). Note that putting state log into a drawer will remove it from export. If you want to export state changes, try #+OPTIONS: d:("LOGBOOK") > Thank you for giving a thought on it. Thank you for contributing very good ideas! - Carsten