From 560cbe1c3821267d60d52985bf88ab6062a6109c Mon Sep 17 00:00:00 2001 From: Bastien Guerry Date: Sun, 1 Apr 2012 20:35:21 +0200 Subject: [PATCH] org.el: Fix bug in `org-todo'. * org.el (org-todo): Fix bug in `org-todo'. Thanks to Moritz Ulrich for this patch. --- lisp/org.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lisp/org.el b/lisp/org.el index 85d8d1efb..c3e924604 100644 --- a/lisp/org.el +++ b/lisp/org.el @@ -11256,7 +11256,7 @@ For calling through lisp, arg is also interpreted in the following way: (interpret (nth 1 ass)) (done-word (nth 3 ass)) (final-done-word (nth 4 ass)) - (last-state (or this "")) + (org-last-state (or this "")) (completion-ignore-case t) (member (member this org-todo-keywords-1)) (tail (cdr member)) @@ -11322,7 +11322,7 @@ For calling through lisp, arg is also interpreted in the following way: (car tail)))) (state (or (run-hook-with-args-until-success - 'org-todo-get-default-hook state last-state) + 'org-todo-get-default-hook state org-last-state) state)) (next (if state (concat " " state " ") " ")) (change-plist (list :type 'todo-state-change :from this :to state