Function: org-add-log-setup
org-add-log-setup is a byte-compiled function defined in org.el.gz.
Signature
(org-add-log-setup &optional PURPOSE STATE PREV-STATE HOW EXTRA)
Documentation
Set up the post command hook to take a note.
If this is about to TODO state change, the new state is expected in STATE. HOW is an indicator what kind of note should be created. EXTRA is additional text that will be inserted into the notes buffer.
Source Code
;; Defined in /usr/src/emacs/lisp/org/org.el.gz
(defun org-add-log-setup (&optional purpose state prev-state how extra)
"Set up the post command hook to take a note.
If this is about to TODO state change, the new state is expected in STATE.
HOW is an indicator what kind of note should be created.
EXTRA is additional text that will be inserted into the notes buffer."
(move-marker org-log-note-marker (point))
(setq org-log-note-purpose purpose
org-log-note-state state
org-log-note-previous-state prev-state
org-log-note-how how
org-log-note-extra extra
org-log-note-effective-time (org-current-effective-time)
org-log-note-this-command this-command
org-log-note-recursion-depth (recursion-depth)
org-log-setup t)
(add-hook 'post-command-hook 'org-add-log-note 'append))