|
@@ -9436,7 +9436,11 @@ the same tree node, and the headline of the tree node in the Org file."
|
|
(goto-char pos)
|
|
(goto-char pos)
|
|
(org-show-context 'agenda)
|
|
(org-show-context 'agenda)
|
|
(let ((current-prefix-arg arg))
|
|
(let ((current-prefix-arg arg))
|
|
- (call-interactively 'org-todo))
|
|
|
|
|
|
+ (call-interactively 'org-todo)
|
|
|
|
+ ;; Make sure that log is recorded in current undo.
|
|
|
|
+ (when (and org-log-setup
|
|
|
|
+ (not (eq org-log-note-how 'note)))
|
|
|
|
+ (org-add-log-note)))
|
|
(and (bolp) (forward-char 1))
|
|
(and (bolp) (forward-char 1))
|
|
(setq newhead (org-get-heading))
|
|
(setq newhead (org-get-heading))
|
|
(when (and org-agenda-headline-snapshot-before-repeat
|
|
(when (and org-agenda-headline-snapshot-before-repeat
|