From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: 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 Message-ID: <87bnkd6gcl.fsf@nicolasgoaziou.fr> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:60414) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YRm6Y-0000YM-Kn for emacs-orgmode@gnu.org; Sat, 28 Feb 2015 13:27:11 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YRm6V-0004hK-EB for emacs-orgmode@gnu.org; Sat, 28 Feb 2015 13:27:10 -0500 Received: from relay6-d.mail.gandi.net ([2001:4b98:c:538::198]:57447) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YRm6V-0004gs-8h for emacs-orgmode@gnu.org; Sat, 28 Feb 2015 13:27:07 -0500 In-Reply-To: (Valery V. Vorotyntsev's message of "Fri, 27 Feb 2015 23:30:44 +0200") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: "Valery V. Vorotyntsev" Cc: emacs-orgmode@gnu.org Hello, "Valery V. Vorotyntsev" writes: > On 27 February 2015 at 23:20, Valery V. Vorotyntsev 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