From mboxrd@z Thu Jan 1 00:00:00 1970 From: Keith M Swartz Subject: Re: Question about todo subheadings and logbook Date: Fri, 4 Sep 2015 13:26:57 -0700 Message-ID: References: <87k2s6koeg.fsf@nicolasgoaziou.fr> <877fo6km9v.fsf@nicolasgoaziou.fr> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=089e0158b78ecdc797051ef1b9ec Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:38758) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZXxZv-0000D9-I7 for Emacs-orgmode@gnu.org; Fri, 04 Sep 2015 16:27:20 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZXxZu-00060Z-4v for Emacs-orgmode@gnu.org; Fri, 04 Sep 2015 16:27:19 -0400 Received: from mail-la0-x231.google.com ([2a00:1450:4010:c03::231]:33120) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZXxZt-00060O-Ls for Emacs-orgmode@gnu.org; Fri, 04 Sep 2015 16:27:18 -0400 Received: by lamp12 with SMTP id p12so19884510lam.0 for ; Fri, 04 Sep 2015 13:27:16 -0700 (PDT) In-Reply-To: <877fo6km9v.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: Keith M Swartz , Emacs-orgmode@gnu.org --089e0158b78ecdc797051ef1b9ec Content-Type: text/plain; charset=UTF-8 I was creating the sub-heading from the exact same spot where I stopped typing and hit C-c C-t. Didn't move the cursor, just went straight from one step to the next. After step Here is what that set of steps created for me: * PEND First item :LOGBOOK: - State "PEND" from "TODO" [2015-09-04 Fri 13:23] :END: *** PEND Second item :LOGBOOK: - State "PEND" from "TODO" [2015-09-04 Fri 13:23] - State "TODO" from [2015-09-04 Fri 13:23] - State "TODO" from [2015-09-04 Fri 13:22] :END: Step-by-step -- after step 1 [note: the logbook is collapsed initially, but I expanded it here to show the contents. Expanding the logbook before creating a sub-item may alter the results; I haven't tried that.] * TODO First item :LOGBOOK: - State "TODO" from [2015-09-04 Fri 13:25] :END: after step 2: * TODO First item *** TODO Second item :LOGBOOK: - State "TODO" from [2015-09-04 Fri 13:26] - State "TODO" from [2015-09-04 Fri 13:25] :END: Looks like our experiences already differ. (BTW, are you on the same org version?) after step 3: * TODO First item *** PEND Second item :LOGBOOK: - State "PEND" from "TODO" [2015-09-04 Fri 13:26] - State "TODO" from [2015-09-04 Fri 13:26] - State "TODO" from [2015-09-04 Fri 13:25] :END: And after step 4, it's as you saw above. Keith On Fri, Sep 4, 2015 at 12:38 PM, Nicolas Goaziou wrote: > Keith M Swartz writes: > > > Here is an example to reproduce some questionable results: > > > > 0. Create a set of TODO labels, like so: > > #+SEQ_TODO: TODO(!) PEND(!) DONE(!) > > > > 1. Create an item, make it a todo. (Creates a logbook.) > > OK. > > > 2. Create a subheading. (Alt-Enter, shift-right) > > From where? > > > Make it a todo. (This adds a line to the logbook saying the state > > changed to TODO, even though the previous line says the state already > > is TODO. You can't tell which state changed.) > > > > 3. Cycle the state on your sub-todo to PEND. (Changes the state in the > > logbook.) > > > > 4, Go back to the main heading and cycle the state to PEND. (This creates > > ANOTHER logbook right underneath the heading showing the state change. > The > > original record for when it was marked TODO is in the other logbook, but > > there are two such entries, and it's not obvious which one is which. You > > could probably infer logically that the older entry is for the main > > heading, but if states keep going back and forth, you'll lose track > > quickly.) > > I cannot reproduce this. It creates the following document: > > #+SEQ_TODO: TODO(!) PEND(!) DONE(!) > > * PEND test > :LOGBOOK: > - State "PEND" from "TODO" [2015-09-04 ven. 21:37] > - State "TODO" from [2015-09-04 ven. 21:33] > :END: > > ** PEND test2 > :LOGBOOK: > - State "PEND" from "TODO" [2015-09-04 ven. 21:35] > - State "TODO" from [2015-09-04 ven. 21:34] > :END: > > > Regards, > -- Keith M Swartz oneroadkms@gmail.com --089e0158b78ecdc797051ef1b9ec Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
I was creating the sub-heading from the exact same sp= ot where I stopped typing and hit C-c C-t. Didn't move the cursor, just= went straight from one step to the next.

After step
=
Here is what that set of steps created for me:

* PEND First item=
:LOGBOOK:
- State "PEND"=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0 from "TODO"=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 [2015-09-04 F= ri 13:23]
:END:
*** PEND Second item
:LOGBOOK:
- State "PE= ND"=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 from "TODO"=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0 [2015-09-04 Fri 13:23]
- State "TODO&qu= ot;=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 from=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 [2015-09-04 Fri 13:23]
= - State "TODO"=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 from=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 [2015= -09-04 Fri 13:22]
:END:

Step-by-step -- after step 1 [= note: the logbook is collapsed initially, but I expanded it here to show th= e contents. Expanding the logbook before creating a sub-item may alter the = results; I haven't tried that.]

* TODO First item
:LOGBOOK:- State "TODO"=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 from=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 [2= 015-09-04 Fri 13:25]
:END:

after step 2:

* TODO= First item
*** TODO Second item
:LOGBOOK:
- State "TODO"= ;=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 from=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 [2015-09-04 Fri 13:26]
- S= tate "TODO"=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 from=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 [2015-09= -04 Fri 13:25]
:END:

Looks like our experiences alread= y differ. (BTW, are you on the same org version?)

after s= tep 3:

* TODO First item
*** PEND Second item
:LOGBOOK:
- S= tate "PEND"=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 from "TODO&q= uot;=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 [2015-09-04 Fri 13:26]
- State = "TODO"=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 from=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 [2015-09-04 Fr= i 13:26]
- State "TODO"=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 fr= om=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0 [2015-09-04 Fri 13:25]
:END:

And after step 4, = it's as you saw above.

Keith

=

On Fri, Sep= 4, 2015 at 12:38 PM, Nicolas Goaziou <mail@nicolasgoaziou.fr>= wrote:
Keith M Swartz <oneroadkms@gmail.com> writes:

> Here is an example to reproduce some questionable results:
>
> 0. Create a set of TODO labels, like so:
> #+SEQ_TODO: TODO(!) PEND(!) DONE(!)
>
> 1. Create an item, make it a todo. (Creates a logbook.)

OK.

> 2. Create a subheading. (Alt-Enter, shift-right)

>From where?

> Make it a todo. (This adds a line to the logbook saying the state
> changed to TODO, even though the previous line says the state already<= br> > is TODO. You can't tell which state changed.)
>
> 3. Cycle the state on your sub-todo to PEND. (Changes the state in the=
> logbook.)
>
> 4, Go back to the main heading and cycle the state to PEND. (This crea= tes
> ANOTHER logbook right underneath the heading showing the state change.= The
> original record for when it was marked TODO is in the other logbook, b= ut
> there are two such entries, and it's not obvious which one is whic= h. You
> could probably infer logically that the older entry is for the main > heading, but if states keep going back and forth, you'll lose trac= k
> quickly.)

I cannot reproduce this. It creates the following document:

=C2=A0 #+SEQ_TODO: TODO(!) PEND(!) DONE(!)

=C2=A0 * PEND test
=C2=A0 =C2=A0 :LOGBOOK:
=C2=A0 =C2=A0 - State "PEND"=C2=A0 =C2=A0 =C2=A0 =C2=A0from "= ;TODO"=C2=A0 =C2=A0 =C2=A0 =C2=A0[2015-09-04 ven. 21:37]
=C2=A0 =C2=A0 - State "TODO"=C2=A0 =C2=A0 =C2=A0 =C2=A0from=C2=A0= =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 [2015-09-04 ven. 21:33]
=C2=A0 =C2=A0 :END:

=C2=A0 ** PEND test2
=C2=A0 =C2=A0 =C2=A0:LOGBOOK:
=C2=A0 =C2=A0 =C2=A0- State "PEND"=C2=A0 =C2=A0 =C2=A0 =C2=A0from= "TODO"=C2=A0 =C2=A0 =C2=A0 =C2=A0[2015-09-04 ven. 21:35]
=C2=A0 =C2=A0 =C2=A0- State "TODO"=C2=A0 =C2=A0 =C2=A0 =C2=A0from= =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 [2015-09-04 ven. 21:34] =C2=A0 =C2=A0 =C2=A0:END:


Regards,



--

Keith M Swartz
oneroadkms@gmail.com

--089e0158b78ecdc797051ef1b9ec--