Bläddra i källkod

org.el: Fix bug in `org-todo'.

* org.el (org-todo): Fix bug in `org-todo'.

Thanks to Moritz Ulrich for this patch.
Bastien Guerry 13 år sedan
förälder
incheckning
560cbe1c38
1 ändrade filer med 2 tillägg och 2 borttagningar
  1. 2 2
      lisp/org.el

+ 2 - 2
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