From 792bb9b65504a70f3678409bba1a1c144b794a9d Mon Sep 17 00:00:00 2001 From: Kyle Meyer Date: Sun, 19 Jun 2016 14:11:25 -0400 Subject: [PATCH] org-set-effort: Fix void variable error * lisp/org.el (org-set-effort): Check if org-clock-current-task is defined because org-clock.el may not be loaded yet. --- lisp/org.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/org.el b/lisp/org.el index 8ab667a60..0865bbb89 100644 --- a/lisp/org.el +++ b/lisp/org.el @@ -15711,7 +15711,7 @@ When INCREMENT is non-nil, set the property to the next allowed value." '((effort . identity) (effort-minutes . org-duration-string-to-minutes)) val) - (when (string= heading org-clock-current-task) + (when (string= heading (org-bound-and-true-p org-clock-current-task)) (setq org-clock-effort (get-text-property (point-at-bol) 'effort)) (org-clock-update-mode-line)) (message "%s is now %s" prop val)))