Browse Source

org-clock: Do not inhibit logging with `org-clock-out-switch-to-state'

* lisp/org-clock.el (org-clock-out): Do not inhibit logging.

Logging is not inhibited when using `org-clock-in-switch-to-state'.

Reported-by: Рома Рудаков <phentagram@gmail.com>
http://lists.gnu.org/archive/html/emacs-orgmode/2017-07/msg00473.html
Nicolas Goaziou 3 years ago
parent
commit
27e5beaa64
1 changed files with 1 additions and 2 deletions
  1. 1 2
      lisp/org-clock.el

+ 1 - 2
lisp/org-clock.el

@@ -1626,8 +1626,7 @@ to, overriding the existing value of `org-clock-out-switch-to-state'."
 	  (when org-clock-out-switch-to-state
 	    (save-excursion
 	      (org-back-to-heading t)
-	      (let ((org-inhibit-logging t)
-		    (org-clock-out-when-done nil))
+	      (let ((org-clock-out-when-done nil))
 		(cond
 		 ((functionp org-clock-out-switch-to-state)
 		  (let ((case-fold-search nil))