Discussion:
[O] Parsing of todo state log lines
Michael Brand
2018-05-15 09:38:48 UTC
Permalink
Hi all

There seems to be an inconsistency in parsing. When
org-log-states-order-reversed is nil (which I am new to) and a TODO
with the manually written state log lines

- State "DONE" from "TODO" [2018-05-12 Sat]
- State "DONE" from [2018-05-13 Sun]
- State "DONE" from "TODO" [2018-05-14 Mon]

is changed to DONE the new state log line is expected to go after the
third line but it goes after the first like if the second was missed
by the parser. When the same state log lines are in a habit they are
all recognized for the consistency graph where they appear as a star,
but still the new state log line goes after the first line.

Found in Org release_9.1.13-751-g9dcc522.

Michael
Michael Brand
2018-05-16 19:49:09 UTC
Permalink
Hi Nicolas
Hello,
Post by Michael Brand
There seems to be an inconsistency in parsing. When
org-log-states-order-reversed is nil (which I am new to) and a TODO
with the manually written state log lines
- State "DONE" from "TODO" [2018-05-12 Sat]
- State "DONE" from [2018-05-13 Sun]
I think it should be
- State "DONE" from "" [whatever]
according to `org-log-note-headings'.
I don't see this happen: When starting with this (the % and the
ordering of the lines have been edited manually)

- State "DONE" from "TODO" [2018-05-15 Tue 10:00]
- State "DONE" from "%" [2018-05-15 Tue 10:00]
- State "DONE" from "" [2018-05-15 Tue 10:00]
- State "DONE" from [2018-05-15 Tue 10:00]

and without todo keyword in the heading the logs change to

- State "DONE" from "TODO" [2018-05-15 Tue 10:00]
- State "DONE" from "%" [2018-05-15 Tue 10:00]
- State "DONE" from [2018-05-16 Wed 21:45]
- State "DONE" from "" [2018-05-15 Tue 10:00]
- State "DONE" from [2018-05-15 Tue 10:00]

So also "" is not recognized. And the new middle line is produced without "".

Michael

Loading...