From mboxrd@z Thu Jan 1 00:00:00 1970 From: Roman Rudakov Subject: Re: Log change TODO state after clock-out Date: Sat, 29 Jul 2017 16:52:16 +0300 Message-ID: References: <87shhgu159.fsf@nicolasgoaziou.fr> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="94eb2c1b26d017018d0555751b1d" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:41001) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dbSAI-0002ku-1T for emacs-orgmode@gnu.org; Sat, 29 Jul 2017 09:52:23 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dbSAG-0007d5-Si for emacs-orgmode@gnu.org; Sat, 29 Jul 2017 09:52:22 -0400 Received: from mail-wm0-x235.google.com ([2a00:1450:400c:c09::235]:35417) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dbSAG-0007bf-I4 for emacs-orgmode@gnu.org; Sat, 29 Jul 2017 09:52:20 -0400 Received: by mail-wm0-x235.google.com with SMTP id m85so41791061wma.0 for ; Sat, 29 Jul 2017 06:52:18 -0700 (PDT) In-Reply-To: <87shhgu159.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" To: Nicolas Goaziou Cc: emacs-orgmode@gnu.org --94eb2c1b26d017018d0555751b1d Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hello, I've tried to remove line (org-inhibit-logging t) locally, it have solved my problem partially. If I clock-in and then clock-out the same headline everything is ok (Task 1 in my example) . But if I clock-in Task 2, Then go to Task 3 and ckock it in, Task 2 clocked out and have only CLOSED log entry, but it doesn't have log about change state from PROGRESS to DONE. Example: * DONE Task 1 CLOSED: [2017-07-29 Sat 16:45] :LOGBOOK: - State "DONE" from "PROGRESS" [2017-07-29 Sat 16:45] - State "PROGRESS" from "TODO" [2017-07-29 Sat 16:45] CLOCK: [2017-07-29 Sat 16:45]--[2017-07-29 Sat 16:45] =3D> 0:00 :END: * DONE Task 2 CLOSED: [2017-07-29 Sat 16:45] :LOGBOOK: - State "PROGRESS" from "TODO" [2017-07-29 Sat 16:45] CLOCK: [2017-07-29 Sat 16:45]--[2017-07-29 Sat 16:45] =3D> 0:00 :END: * PROGRESS Task 3 :LOGBOOK: - State "PROGRESS" from "TODO" [2017-07-29 Sat 16:45] CLOCK: [2017-07-29 Sat 16:45] :END: 2017-07-28 16:44 GMT+03:00 Nicolas Goaziou : > Hello, > > =D0=A0=D0=BE=D0=BC=D0=B0 =D0=A0=D1=83=D0=B4=D0=B0=D0=BA=D0=BE=D0=B2 writes: > > > Expected result: > > > > * DONE task 1 > > CLOSED: [2017-07-26 Wed 15:39] > > :LOGBOOK: > > - State "DONE" from "PROGRESS" [2017-07-26 Wed 15:39] > > - State "PROGRESS" from "TODO" [2017-07-26 Wed 15:37] > > CLOCK: [2017-07-26 Wed 15:37]--[2017-07-26 Wed 15:38] =3D> 0:01 > > :END: > > * TODO task 2 > > * TODO task 3 > > * TODO task 4 > > > > > > Actual result: > > > > * DONE task 1 > > :LOGBOOK: > > - State "PROGRESS" from "TODO" [2017-07-26 Wed 15:37] > > CLOCK: [2017-07-26 Wed 15:37]--[2017-07-26 Wed 15:38] =3D> 0:01 > > :END: > > * TODO task 2 > > * TODO task 3 > > * TODO task 4 > > > > There is no CLOSED log entry and change state from PROGRESS to DONE > > entry. > > Logging was inhibited when using `org-clock-out-switch-to-state', but > not when using `org-clock-in-switch-to-state'. I assume this is a bug, > so I removed it. > > I may be wrong though, so this change is in master only. > > Thank you. > > Regards, > > -- > Nicolas Goaziou > --94eb2c1b26d017018d0555751b1d Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hello,
I've tried to remo= ve line (org-inhibit-logging t) locally, it have solved my problem partiall= y.

If I clock-in and then clock-out the same headline everythi= ng is ok (Task 1 in my example)
. But if I clock-in Task 2, Then g= o to Task 3 and ckock it in, Task 2 clocked out and have only CLOSED log en= try, but it doesn't have log about change state from PROGRESS to DONE.<= br>
Example:

* DONE Task 1
CLOSED: [2017-07-29 Sat 16:45= ]
:LOGBOOK:
- State "DONE"=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0 from "PROGRESS"=C2=A0=C2=A0 [2017-07-29 Sat 16:45]
- State= "PROGRESS"=C2=A0=C2=A0 from "TODO"=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0 [2017-07-29 Sat 16:45]
CLOCK: [2017-07-29 Sat 16:45]-= -[2017-07-29 Sat 16:45] =3D>=C2=A0 0:00
:END:

* DONE Task 2CLOSED: [2017-07-29 Sat 16:45]
:LOGBOOK:
- State "PROGRESS"= ;=C2=A0=C2=A0 from "TODO"=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 [20= 17-07-29 Sat 16:45]
CLOCK: [2017-07-29 Sat 16:45]--[2017-07-29 Sat 16:45= ] =3D>=C2=A0 0:00
:END:

* PROGRESS Task 3
:LOGBOOK:
- St= ate "PROGRESS"=C2=A0=C2=A0 from "TODO"=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0 [2017-07-29 Sat 16:45]
CLOCK: [2017-07-29 Sat 16:4= 5]
:END:


2017-07-28 16:44 GMT+03:00 Nicolas Goaziou <mail@nicolasgoazi= ou.fr>:
Hello,

=D0=A0=D0=BE=D0=BC=D0=B0 =D0=A0=D1=83=D0=B4=D0=B0=D0=BA=D0=BE=D0=B2 <phentagram@gmail.com> writes:
> Expected result:
>
> * DONE task 1
>=C2=A0 =C2=A0CLOSED: [2017-07-26 Wed 15:39]
>=C2=A0 =C2=A0:LOGBOOK:
>=C2=A0 =C2=A0- State "DONE"=C2=A0 =C2=A0 =C2=A0 =C2=A0from &q= uot;PROGRESS"=C2=A0 =C2=A0[2017-07-26 Wed 15:39]
>=C2=A0 =C2=A0- State "PROGRESS"=C2=A0 =C2=A0from "TODO&q= uot;=C2=A0 =C2=A0 =C2=A0 =C2=A0[2017-07-26 Wed 15:37]
>=C2=A0 =C2=A0CLOCK: [2017-07-26 Wed 15:37]--[2017-07-26 Wed 15:38] =3D&= gt;=C2=A0 0:01
>=C2=A0 =C2=A0:END:
> * TODO task 2
> * TODO task 3
> * TODO task 4
>
>
> Actual result:
>
> * DONE task 1
>=C2=A0 =C2=A0:LOGBOOK:
>=C2=A0 =C2=A0- State "PROGRESS"=C2=A0 =C2=A0from "TODO&q= uot;=C2=A0 =C2=A0 =C2=A0 =C2=A0[2017-07-26 Wed 15:37]
>=C2=A0 =C2=A0CLOCK: [2017-07-26 Wed 15:37]--[2017-07-26 Wed 15:38] =3D&= gt;=C2=A0 0:01
>=C2=A0 =C2=A0:END:
> * TODO task 2
> * TODO task 3
> * TODO task 4
>
> There is no CLOSED log entry and change state from PROGRESS to DONE > entry.

Logging was inhibited when using `org-clock-out-switch-to-state= ', but
not when using `org-clock-in-switch-to-state'. I assume this is a = bug,
so I removed it.

I may be wrong though, so this change is in master only.

Thank you.

Regards,

--
Nicolas Goaziou

--94eb2c1b26d017018d0555751b1d--