Ihor Radchenko <[email protected]> writes:

> Morgan Smith <[email protected]> writes:
>
>>>>> The second case looks like a bug.
>>
>> See new patch that fixes said behavior.  The worg page on org syntax
>> says that COMMENT always has to come after TODO.
>
> But did you actually fix the problem?
> You removed the wrapper that comments and then comments the heading,
> but there is nothing inherently wrong with that approach. The problem
> probably lies inside `org-toggle-comment'.

TODO keywords should be before the COMMENT keyword.

Good:
* COMMENT
* TODO COMMENT

Confusing and not actually a TODO:
* COMMENT TODO

The problem is that currently org-todo does the following:
* COMMENT TODO H -> * DONE COMMENT H

It strips the COMMENT so the TODO keyword in the wrong place can be
toggled, and then it puts the COMMENT where it is supposed to be.

So we are at a crossroads with two options.

1. Follow the established syntax and remove this janky feature.

2. Go through all the COMMENT and TODO related code and ensure that it
works regardless of order of TODO and COMMENT keywords.

I prefer option 1 but the decision is yours.

Reply via email to