Browse Source

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
Dave Abrahams 13 years ago
parent
commit
4a8be63ac6
1 changed files with 1 additions and 0 deletions
  1. 1 0
      lisp/org-clock.el

+ 1 - 0
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)