[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: |
Nicolas Goaziou |
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: |
Sat, 28 Feb 2015 19:28:10 +0100 |
Hello,
"Valery V. Vorotyntsev" <address@hidden> writes:
> 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 ]----------
This was fixed recently. You need to update Org. Thank you for the patch
anyway.
Regards,
--
Nicolas Goaziou