From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Valery V. Vorotyntsev" 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: Fri, 27 Feb 2015 23:30:44 +0200 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:43700) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YRSUg-0006oK-5F for emacs-orgmode@gnu.org; Fri, 27 Feb 2015 16:30:47 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YRSUf-0003aK-Dh for emacs-orgmode@gnu.org; Fri, 27 Feb 2015 16:30:46 -0500 Received: from mail-la0-x230.google.com ([2a00:1450:4010:c03::230]:38684) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YRSUf-0003aF-5c for emacs-orgmode@gnu.org; Fri, 27 Feb 2015 16:30:45 -0500 Received: by labhv19 with SMTP id hv19so1187485lab.5 for ; Fri, 27 Feb 2015 13:30:44 -0800 (PST) In-Reply-To: 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: emacs-orgmode@gnu.org 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 ]---------- -- vvv