瀏覽代碼

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 年之前
父節點
當前提交
4a8be63ac6
共有 1 個文件被更改,包括 1 次插入0 次删除
  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)