diff options
author | Dave Abrahams <dave@boostpro.com> | 2011-12-11 18:25:58 +0100 |
---|---|---|
committer | Bastien Guerry <bzg@altern.org> | 2011-12-11 18:25:58 +0100 |
commit | 4a8be63ac68e7e29ec877083d2c9bf8533653f0c (patch) | |
tree | 02e07c1e96e399501dfcece5660e7bcd45e5b67f | |
parent | 0151120b1b317bc68c69aaf838807dff3bd3a7e9 (diff) | |
download | org-mode-4a8be63ac68e7e29ec877083d2c9bf8533653f0c.tar.gz |
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
-rw-r--r-- | lisp/org-clock.el | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lisp/org-clock.el b/lisp/org-clock.el index 3654185..b29f47b 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) |