Ver Fonte

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 há 14 anos atrás
pai
commit
4a8be63ac6
1 ficheiros alterados com 1 adições e 0 exclusões
  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)