summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarco Wahl <marcowahlsoft@gmail.com>2016-01-15 11:45:41 +0100
committerMarco Wahl <marcowahlsoft@gmail.com>2016-01-15 11:45:41 +0100
commit164555b46ea694cfb141488d8abce15656245bdc (patch)
tree02eb0106a7165d1d68177f6bebaea0f4f47de04d
parentcb744d0446f7148134006eea6e6bc115ad282b8d (diff)
downloadorg-mode-164555b46ea694cfb141488d8abce15656245bdc.tar.gz
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.
-rwxr-xr-xlisp/org.el1
1 files changed, 1 insertions, 0 deletions
diff --git a/lisp/org.el b/lisp/org.el
index 6bf43af..76b4f9f 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,