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.
This commit is contained in:
Kyle Meyer 2016-06-19 14:11:25 -04:00
parent b237d4df04
commit 792bb9b655
1 changed files with 1 additions and 1 deletions

View File

@ -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)))