[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] TODO type problem on speedbar and imenu.

From: Nicolas Goaziou
Subject: Re: [O] TODO type problem on speedbar and imenu.
Date: Wed, 17 Aug 2011 20:16:02 +0200


Bastien <address@hidden> writes:

> Hi Nicolas,
> Nicolas Goaziou <address@hidden> 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:address@hidden:\\)\\)?[ \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).


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

Nicolas Goaziou

reply via email to

[Prev in Thread] Current Thread [Next in Thread]