emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] Bug: numeric org-clock-into-drawer is ignored [8.3beta (release_


From: Valery V. Vorotyntsev
Subject: Re: [O] Bug: numeric org-clock-into-drawer is ignored [8.3beta (release_8.3beta-846-g38ab8b @ /Users/vvv/lib/emacs/org-mode/lisp/)]
Date: Fri, 27 Feb 2015 23:30:44 +0200

On 27 February 2015 at 23:20, Valery V. Vorotyntsev <address@hidden> wrote:

> I have set `org-clock-into-drawer' to 2.
> `(org-clock-into-drawer)' should return the same value (see the
> documentation of this function), yet it returns "LOGBOOK".

Proposed patch:

----------[ begin ]----------
diff --git a/lisp/org-clock.el b/lisp/org-clock.el
index 07f02b0..0edc1b9 100644
--- a/lisp/org-clock.el
+++ b/lisp/org-clock.el
@@ -88,6 +88,7 @@ Return value is either a string, an integer, or nil."
    (if (org-string-match-p "\\`[0-9]+\\'" p) (string-to-number p) p))
   ((org-string-nw-p org-clock-into-drawer))
   ((not org-clock-into-drawer) nil)
+  ((wholenump org-clock-into-drawer) org-clock-into-drawer)
   ((org-log-into-drawer))
   (t "LOGBOOK"))))
----------[ end ]----------

-- 
vvv



reply via email to

[Prev in Thread] Current Thread [Next in Thread]