From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: TODO type problem on speedbar and imenu. Date: Wed, 17 Aug 2011 20:16:02 +0200 Message-ID: <87liur6h0d.fsf@gmail.com> References: <8762mwsdhv.fsf@gmail.com> <87vcursd79.fsf@altern.org> <871uwp8vlp.fsf@gmail.com> <87hb5ho0nz.fsf@altern.org> <8762lx6pr5.fsf@gmail.com> <878vqsnhrr.fsf@altern.org> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([140.186.70.92]:51042) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QtkfQ-0002nt-4n for emacs-orgmode@gnu.org; Wed, 17 Aug 2011 14:16:41 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QtkfP-0002XF-5q for emacs-orgmode@gnu.org; Wed, 17 Aug 2011 14:16:40 -0400 Received: from mail-ww0-f49.google.com ([74.125.82.49]:42313) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QtkfO-0002X7-RZ for emacs-orgmode@gnu.org; Wed, 17 Aug 2011 14:16:39 -0400 Received: by wwf10 with SMTP id 10so1018763wwf.30 for ; Wed, 17 Aug 2011 11:16:37 -0700 (PDT) In-Reply-To: <878vqsnhrr.fsf@altern.org> (Bastien's message of "Wed, 17 Aug 2011 18:00:30 +0200") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Bastien Cc: emacs-orgmode@gnu.org, Osamu OKANO Hello, Bastien writes: > Hi Nicolas, > > Nicolas Goaziou 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