From 18685d98527e0479b8108cac420b23d481fd5bfd Mon Sep 17 00:00:00 2001 From: Nicolas Goaziou Date: Sat, 28 Feb 2015 00:43:37 +0100 Subject: [PATCH] org-clock: Fix ignored integer values for `org-clock-into-drawer' * lisp/org-clock.el (org-clock-into-drawer): Fix ignored integer values. Reported-by: Rainer Stengele --- lisp/org-clock.el | 1 + 1 file changed, 1 insertion(+) diff --git a/lisp/org-clock.el b/lisp/org-clock.el index 07f02b02a..7982e79e3 100644 --- a/lisp/org-clock.el +++ b/lisp/org-clock.el @@ -87,6 +87,7 @@ Return value is either a string, an integer, or nil." ((org-string-nw-p p) (if (org-string-match-p "\\`[0-9]+\\'" p) (string-to-number p) p)) ((org-string-nw-p org-clock-into-drawer)) + ((integerp org-clock-into-drawer) org-clock-into-drawer) ((not org-clock-into-drawer) nil) ((org-log-into-drawer)) (t "LOGBOOK"))))