From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: Bug: (org-clock-in 64) leads to redundant clock entries [7.9.3f (release_7.9.3f-17-g7524ef @ /usr/share/emacs/24.3/lisp/org/)] Date: Thu, 28 Aug 2014 11:52:17 +0200 Message-ID: <87d2bleyb2.fsf@nicolasgoaziou.fr> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:38366) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XMwMn-0007wV-Ef for emacs-orgmode@gnu.org; Thu, 28 Aug 2014 05:51:48 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XMwMe-0003om-OH for emacs-orgmode@gnu.org; Thu, 28 Aug 2014 05:51:41 -0400 Received: from relay4-d.mail.gandi.net ([2001:4b98:c:538::196]:41154) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XMwMe-0003oW-Ie for emacs-orgmode@gnu.org; Thu, 28 Aug 2014 05:51:32 -0400 In-Reply-To: (REN Lifeng's message of "Wed, 27 Aug 2014 16:23:10 +0800") 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: REN Lifeng Cc: emacs-orgmode@gnu.org Hello, REN Lifeng writes: > Maybe I missed something obvious, but I find c-u c-u c-u c-c c-x c-i does > not work as the docstring says. Steps to reproduce the problem follows. > > - emacs -q > - (find-file "test.org") > - insert a header, clock in (say 15:39) > - clock out after more than 1 minute (say 15:43) > - insert another header > - (org-clock-in 64) > > I expect there be one and only one clock entry (15:43). But what I got was 2 > entries. The org file is something like the following. > > * head one > CLOCK: [2014-08-27 Wed 15:39]--[2014-08-27 Wed 15:43] => 0:04 > * (org-clock-in 64) leads to redundant clock entry > CLOCK: [2014-08-27 Wed 15:44] > CLOCK: [2014-08-27 Wed 15:43] > > The following lines in org-clock.el bother me a little. > > (when (equal select '(64)) > ;; Set start-time to `org-clock-out-time' > (let ((org-clock-continuously t)) > (org-clock-in nil org-clock-out-time))) > > Why does it call itself recursively instread of simply setting parameter > start-time to org-clock-out-time? > > Emacs : GNU Emacs 24.3.1 (x86_64-pc-linux-gnu, GTK+ Version 3.12.2) > of 2014-06-07 on barber, modified by Debian > Package: Org-mode version 7.9.3f (release_7.9.3f-17-g7524ef @ > /usr/share/emacs/24.3/lisp/org/) I cannot reproduce it in latest Org. Regards, -- Nicolas Goaziou