From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bernt Hansen Subject: Re: Unable to clock out after "undo" Date: Thu, 05 Jan 2012 16:21:33 -0500 Message-ID: <87ipkp3kwy.fsf@norang.ca> References: <1325781795.38774.YahooMailNeo@web29905.mail.ird.yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([140.186.70.92]:34651) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Riukr-0008HH-Df for emacs-orgmode@gnu.org; Thu, 05 Jan 2012 16:21:46 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Riukq-0007ZR-Ft for emacs-orgmode@gnu.org; Thu, 05 Jan 2012 16:21:45 -0500 Received: from mho-02-ewr.mailhop.org ([204.13.248.72]:60192) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Riukq-0007ZJ-Dw for emacs-orgmode@gnu.org; Thu, 05 Jan 2012 16:21:44 -0500 In-Reply-To: <1325781795.38774.YahooMailNeo@web29905.mail.ird.yahoo.com> (Ab Cd's message of "Thu, 5 Jan 2012 16:43:15 +0000 (GMT)") 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: Ab Cd Cc: "emacs-orgmode@gnu.org" Ab Cd writes: > * This is a test > =C2=A0 CLOCK: [2012-01-05 jeu. 17:30]--[2012-01-05 jeu. 17:30] =3D>=C2=A0= 0:00 > > Now let's undo, with C-_ > > Again, as expected, we heve the following: > > * This is a test > =C2=A0 CLOCK: [2012-01-05 jeu. 17:30] > > So we're back to the state where a task has been started but not complete= d, right? > > Let's try to clock out again (C-c C-x C-o). Now I have 'No active clock'. > > It seems that it does the same thing if I close emacs and open it > again. I was asked if I wanted to clock out before closing, tho. > > Is that a bug ? Or did I miss something? > > Thanks for your help. Hi, The clock timer and the clock text are two separate things. If you undo a closed timestamp then you have an open clock -- but there is no current task clocking since you clocked out and cleared this information. The current clocking task is kept track of in variables in the org-mode codebase. You can clock the open task in again and then clock it out to regenerate the closing time for the task. HTH, Bernt