Hello,

Bastien <b...@altern.org> writes:

> Hi Nicolas,
>
> Nicolas Goaziou <n.goaz...@gmail.com> writes:
>
>> There are quite a few places indeed using "[ \t]" which may use " "
>> instead. Before TODO keywords, before priority cookies, before
>> check-boxes, etc.
>
> Enforcing " " _before_ the places you mention would be good change.
> Feel free to commit such a change if you have some time.

I don't mind providing a commit for this, but the list wasn't
exhaustive. I'd rather have a set of rules which would be part of the
Org format specification.

What about : allow mixing tabs and spaces only when indenting or
filling. One or more spaces everywhere[1] else.

An heading regexp would then be:

"^\\*\\+\\( +TODO\\)?\\( +\\[#.\\]\\)?\\( +.*?\\)?\\([ 
\t]+\\(:[[:alnum:]]_@#%:\\)\\)?[ \t]*$"

Note the use of [ \t]+ to fill the tags to the right. Also note that
regexp means "^***" is a valid regexp (which isn't the case actually).

Regards,

[1] As for every rule, some exceptions: check-boxes cookies and
counters, which can be sticked to respectively the headline text and the
check-box.

-- 
Nicolas Goaziou

Reply via email to