emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Keith M Swartz <oneroadkms@gmail.com>
To: Keith M Swartz <oneroadkms@gmail.com>, Emacs-orgmode@gnu.org
Subject: Re: Question about todo subheadings and logbook
Date: Fri, 4 Sep 2015 13:26:57 -0700	[thread overview]
Message-ID: <CAK6GsA3r2bENmhU3=1G7dQm0K0jTW_0VeRmiKPOYhm4ftV1G_A@mail.gmail.com> (raw)
In-Reply-To: <877fo6km9v.fsf@nicolasgoaziou.fr>

[-- Attachment #1: Type: text/plain, Size: 3175 bytes --]

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 <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
> > 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

[-- Attachment #2: Type: text/html, Size: 4586 bytes --]

  reply	other threads:[~2015-09-04 20:27 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-09-04  6:29 Question about todo subheadings and logbook Keith M Swartz
2015-09-04 18:52 ` Nicolas Goaziou
2015-09-04 19:22   ` Keith M Swartz
2015-09-04 19:38     ` Nicolas Goaziou
2015-09-04 20:26       ` Keith M Swartz [this message]
2015-09-04 22:35         ` Nicolas Goaziou
2015-09-04 22:51           ` Keith M Swartz
2015-09-05  8:39             ` Nicolas Goaziou
2015-09-05 18:26               ` Keith M Swartz

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAK6GsA3r2bENmhU3=1G7dQm0K0jTW_0VeRmiKPOYhm4ftV1G_A@mail.gmail.com' \
    --to=oneroadkms@gmail.com \
    --cc=Emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).