From mboxrd@z Thu Jan 1 00:00:00 1970 From: vdyadov@elvees.com (=?utf-8?B?0JTRj9C00L7QsiDQktCw0YHQuNC7INCh0YI=?= =?utf-8?B?0L7Rj9C90L7Qsg==?=) Subject: Bug: problem with removing logbook drawer with zero time on clockout and recording state transitions into the same drawer [7.9.3e (7.9.3e-956-g3943be.dirty @ /home/vdyadov/Work/Tools/emacs/org-mode/lisp/)] Date: Mon, 18 Feb 2013 20:06:22 +0400 Message-ID: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:36697) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U7TEb-0007Zo-CZ for emacs-orgmode@gnu.org; Mon, 18 Feb 2013 11:06:37 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1U7TET-0001n9-Qg for emacs-orgmode@gnu.org; Mon, 18 Feb 2013 11:06:29 -0500 Received: from mail.elvees.com ([80.90.126.250]:56627) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U7TES-0001mp-Up for emacs-orgmode@gnu.org; Mon, 18 Feb 2013 11:06:21 -0500 Received: from canopus-pc.elvees.com.elvees.com (horse.elvees.com [80.90.126.253]) (authenticated bits=0) by mail.elvees.com (8.14.3/8.14.2) with ESMTP id r1IG6JS1064307 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NOT) for ; Mon, 18 Feb 2013 20:06:19 +0400 (MSK) (envelope-from vdyadov@elvees.com) 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 Remember to cover the basics, that is, what you expected to happen and what in fact did happen. You don't know how to make a good report? See http://orgmode.org/manual/Feedback.html#Feedback Your bug report will be posted to the Org-mode mailing list. ------------------------------------------------------------------------ The problem is: when I clock-in into some task and then within 1 minute change tasks state to DONE, information about state transition recorded incorrectly (:LOGBOOK: drawer is removed because of zero time, and then state transition recorded out of drawer :LOGBOOK:). I've next variables set to true: org-clock-out-remove-zero-time-clocks org-clock-out-when-done org-clock-into-drawer Variable org-log-into-drawer set to "LOGBOOK" How to reproduce the bug: step1: ,---- | * TODO Task1 | [2013-02-18 Mon 17:40] | some-text here `---- step2: clocking-in ,---- | * NEXT Task1 | :LOGBOOK: | CLOCK: [2013-02-18 Mon 18:00] | :END: | [2013-02-18 Mon 17:40] | some-text here `---- step3: within less than 1 minute : C-c C-t d ,---- | * DONE Task1 | CLOSED: [2013-02-18 Mon 18:00] | [2013-02-18 Mon 17:40] | - State "DONE" from "NEXT" [2013-02-18 Mon 18:00] | some-text here `---- Emacs : GNU Emacs 24.2.1 (x86_64-unknown-linux-gnu, GTK+ Version 2.18.9) of 2012-12-25 on canopus-pc.elvees.com Package: Org-mode version 7.9.3e (7.9.3e-956-g3943be.dirty @ /home/vdyadov/Work/Tools/emacs/org-mode/lisp/)