emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Feature improvement request: state change logging
@ 2009-02-11 16:52 Wanrong Lin
  2009-02-12 10:19 ` Ulf Stegemann
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Wanrong Lin @ 2009-02-11 16:52 UTC (permalink / raw)
  To: emacs org-mode mailing list

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).

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?

Thank you for giving a thought on it.

Wanrong

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Feature improvement request: state change logging
  2009-02-11 16:52 Feature improvement request: state change logging Wanrong Lin
@ 2009-02-12 10:19 ` Ulf Stegemann
  2009-02-12 17:51 ` Peter Jones
  2009-02-13  7:25 ` Carsten Dominik
  2 siblings, 0 replies; 4+ messages in thread
From: Ulf Stegemann @ 2009-02-12 10:19 UTC (permalink / raw)
  To: emacs-orgmode

Wanrong Lin <wanrong.lin@gmail.com> wrote:

> 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]

Nice idea IMHO.

> 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?

That's even better. I'd strongly second that.

Ulf

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Feature improvement request: state change logging
  2009-02-11 16:52 Feature improvement request: state change logging Wanrong Lin
  2009-02-12 10:19 ` Ulf Stegemann
@ 2009-02-12 17:51 ` Peter Jones
  2009-02-13  7:25 ` Carsten Dominik
  2 siblings, 0 replies; 4+ messages in thread
From: Peter Jones @ 2009-02-12 17:51 UTC (permalink / raw)
  To: emacs-orgmode

Wanrong Lin <wanrong.lin@gmail.com> writes:
> 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 also second this.  I've been meaning to look into the code and figure
out how difficult it would be to add a state change drawer.  With
recurring events, the state data obfuscates the normal content under the
heading.

-- 
Peter Jones, http://pmade.com
pmade inc.  Louisville, CO US

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Feature improvement request: state change logging
  2009-02-11 16:52 Feature improvement request: state change logging Wanrong Lin
  2009-02-12 10:19 ` Ulf Stegemann
  2009-02-12 17:51 ` Peter Jones
@ 2009-02-13  7:25 ` Carsten Dominik
  2 siblings, 0 replies; 4+ messages in thread
From: Carsten Dominik @ 2009-02-13  7:25 UTC (permalink / raw)
  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

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2009-02-13  7:25 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-02-11 16:52 Feature improvement request: state change logging Wanrong Lin
2009-02-12 10:19 ` Ulf Stegemann
2009-02-12 17:51 ` Peter Jones
2009-02-13  7:25 ` Carsten Dominik

Code repositories for project(s) associated with this inbox:

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).