John J Foerch <jjfoe...@earthlink.net> writes:

> I use org to manage TODO lists in which I want to keep time stamps for
> the creation of an item, and for each state change.  To be as clear as
> possible, I'll just paste the portion of my config that affects how
> TODOs work:
>
>   (setq org-treat-insert-todo-heading-as-state-change t
>         org-log-into-drawer t
>         org-log-done nil)
>   ;;; [snip]
>
>   (setcdr (assq 'state org-log-note-headings)
>           "State -> %s  %t")
>
> This logs each state change (including creation) into the LOGBOOK
> drawer.  It's great.

I thought so too.  I'd like to record creation in the logbook drawer
when I capture a TODO and have adjusted my templates to do so.  They
just include the logbook drawer literally, like so

  "* TODO %?
  :LOGBOOK:
  - State \"TODO\"       from \"\"           %U
  :END:
  %a
  %i"

I thought that org-treat-insert-todo-heading-as-state-change would be
able to create the drawer for me but no such luck.  Duh, capturing is
not a state change now is it.

Anyway, is there a smarter way to log creation at capture?

Thanks in advance,
-- 
Olaf Meeuwissen, LPIC-2           FLOSS Engineer -- AVASYS CORPORATION
FSF Associate Member #1962               Help support software freedom
                 http://www.fsf.org/jf?referrer=1962

Reply via email to