From 4a8be63ac68e7e29ec877083d2c9bf8533653f0c Mon Sep 17 00:00:00 2001 From: Dave Abrahams Date: Sun, 11 Dec 2011 18:25:58 +0100 Subject: [PATCH] org-clock.el: Check the clock buffer is existing when clocking out. * org-clock.el (org-clock-out-if-current): Check the clock buffer is existing. TINYCHANGE --- lisp/org-clock.el | 1 + 1 file changed, 1 insertion(+) diff --git a/lisp/org-clock.el b/lisp/org-clock.el index 365418597..b29f47b6f 100644 --- a/lisp/org-clock.el +++ b/lisp/org-clock.el @@ -1698,6 +1698,7 @@ This is used to stop the clock after a TODO entry is marked DONE, and is only done if the variable `org-clock-out-when-done' is not nil." (when (and (org-clocking-p) org-clock-out-when-done + (marker-buffer org-clock-marker) (or (and (eq t org-clock-out-when-done) (member state org-done-keywords)) (and (listp org-clock-out-when-done) -- 2.11.4.GIT