1
0
mirror of https://git.savannah.gnu.org/git/emacs/org-mode.git synced 2024-11-22 07:09:47 +00:00

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 <rainer.stengele@online.de>
<http://permalink.gmane.org/gmane.emacs.orgmode/95504>
This commit is contained in:
Nicolas Goaziou 2015-02-28 00:43:37 +01:00
parent e5a363e5fe
commit 18685d9852

View File

@ -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"))))