From mboxrd@z Thu Jan 1 00:00:00 1970 From: REN Lifeng 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: Fri, 29 Aug 2014 21:41:46 +0800 Message-ID: References: <87d2bleyb2.fsf@nicolasgoaziou.fr> <87ha0vwr5g.fsf@nicolasgoaziou.fr> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:36624) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XNMR4-00075n-K1 for emacs-orgmode@gnu.org; Fri, 29 Aug 2014 09:41:51 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XNMR3-0007E9-5p for emacs-orgmode@gnu.org; Fri, 29 Aug 2014 09:41:50 -0400 Received: from mail-pa0-x22f.google.com ([2607:f8b0:400e:c03::22f]:64456) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XNMR2-0007E5-Uj for emacs-orgmode@gnu.org; Fri, 29 Aug 2014 09:41:49 -0400 Received: by mail-pa0-f47.google.com with SMTP id hz1so6577168pad.34 for ; Fri, 29 Aug 2014 06:41:48 -0700 (PDT) In-Reply-To: <87ha0vwr5g.fsf@nicolasgoaziou.fr> 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 , emacs-orgmode@gnu.org I have tried in the cleanest environment I could think of, but still get duplicated clock line. Here are the steps. - CTRL+ALT+F1 login to get a console - env -i TERM=linux HOME=/tmp bash --login --norc --noprofile almost empty enviroment, except TERM and HOME, which emacs need - git clone git HEAD, ccf52269aa670ef6f46012bafdec90aee953282b, Mon Aug 25 18:16:01 2014 +0200. - cd org-mode; make autoloads; rm lisp/*.elc without make autoloads, org-clock-in will not be available. - emacs -nw -q --no-site-file -l minimal-org.el minimal-org.el as said in section 1.4 Feedback. what added to load-path is org-mode/lisp. org-mode is the freshly cloned work copy. - create a new .org file - add one header - clock in - add another header - clock out - c-u c-u c-u c-c c-x c-i Are there any other place where an error in my Emacs or Org mode setup might hide? I do not know if these are relevant. But if I replace the recursively call with setq, there will be no duplicated line. There is a similar situation with superfluous clock lines. After idling for more than org-clock-idle-time, there will be multiple "[jkKgGSscCiq]?" question waiting for me in mini buffer. After resolving 10, 10.1, 11 minutes of idle time, I get, again, multiple clock lines, some of which contains start time bigger than end time. I suppose the 2 lines bellow are meant to prevent re-entering org-resolve-clocks-if-idle. 876: (let ((org-clock-resolving-clocks t)) 1056: (let ((org-clock-resolving-clocks t)) But they do not suffice in my case. I have to replace (run-with-timer 60 60 with (run-with-time 60 nil, and add another timer at the end of org-resolve-clocks-if-idle to be asked only once. Shadowing the value with local one is not enough. Does my emacs use different thread / variable binding / foo bar model than yours? My Emacs Version is GNU Emacs 24.3.1 (x86_64-pc-linux-gnu, GTK+ Version 3.12.2) of 2014-06-07 on barber, modified by Debian On Fri, Aug 29, 2014 at 6:01 PM, Nicolas Goaziou wrote: > REN Lifeng writes: > >> Sorry. I gave the wrong steps. The last step should be C-u C-u C-u C-c >> C-x C-i. Could you try again? > > This is what I did. I still cannot reproduce your problem. I also tried > different values for `org-clock-into-drawer', namely nil, t and "CLOCK", > to no avail. > > > Regards, > > -- > Nicolas Goaziou