From 164555b46ea694cfb141488d8abce15656245bdc Mon Sep 17 00:00:00 2001 From: Marco Wahl Date: Fri, 15 Jan 2016 11:45:41 +0100 Subject: [PATCH] org: Fix declaration of variable `org-state' * lisp/org.el: The declaration of `org-state' fixes function `org-todo'. Without the declaration the progressing of todo-states fails in some cases with "Debugger entered--Lisp error: (void-variable org-state)". Cf. thread http://permalink.gmane.org/gmane.emacs.orgmode/104179. --- lisp/org.el | 1 + 1 file changed, 1 insertion(+) diff --git a/lisp/org.el b/lisp/org.el index 6bf43afcc..76b4f9ff1 100755 --- a/lisp/org.el +++ b/lisp/org.el @@ -12386,6 +12386,7 @@ nil or a string to be used for the todo mark." ) bound1 t)) (replace-match "0" t nil nil 1))))) +(defvar org-state) ;; dynamically scoped into this function (defun org-todo (&optional arg) "Change the TODO state of an item. The state of an item is given by a keyword at the start of the heading,