From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: [Orgmode] [PATCH] Distinguish between TEST todo tag and TESTING header Date: Thu, 7 Sep 2006 09:36:27 +0200 Message-ID: <34fa0c5de3db337d12112e0c060423c2@science.uva.nl> References: <21258.1157584111@lotus.CS.Berkeley.EDU> Mime-Version: 1.0 (Apple Message framework v624) Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1GLER5-0007Gf-9N for emacs-orgmode@gnu.org; Thu, 07 Sep 2006 03:36:31 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1GLER2-0007Fc-0s for emacs-orgmode@gnu.org; Thu, 07 Sep 2006 03:36:30 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GLER1-0007FZ-Ta for emacs-orgmode@gnu.org; Thu, 07 Sep 2006 03:36:27 -0400 Received: from [194.134.35.175] (helo=smtp04.wanadoo.nl) by monty-python.gnu.org with esmtp (Exim 4.52) id 1GLERL-0007RU-Lz for emacs-orgmode@gnu.org; Thu, 07 Sep 2006 03:36:47 -0400 In-Reply-To: <21258.1157584111@lotus.CS.Berkeley.EDU> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Jason Riedy Cc: emacs-orgmode@gnu.org Hi Jason, yes, this is a bug, and your fix does work correctly. Thank you very much. - Carsten On Sep 7, 2006, at 1:08, Jason Riedy wrote: > For various reasons, I need both a TEST todo tag and a > header named TESTING in the same document. The current > org-mode correctly distinguishes between them internally, > but not for export. > > The appended patch works for me with a recent Emacs > snapshot, but my org-mode uses are pretty trivial (for now). > I don't have a wide variety of cases to test against. > > Jason > --- > > --- org.el.orig 2006-09-06 15:31:20.000000000 -0700 > +++ org.el 2006-09-06 15:31:08.000000000 -0700 > @@ -2806,15 +2806,15 @@ > "\\|") > "\\)\\>") > org-todo-line-regexp > - (concat "^\\(\\*+\\)[ \t]*\\(" > + (concat "^\\(\\*+\\)[ \t]*\\(?:\\(" > (mapconcat 'regexp-quote org-todo-keywords "\\|") > - "\\)? *\\(.*\\)") > + "\\)\\>\\)? *\\(.*\\)") > org-nl-done-regexp > (concat "[\r\n]\\*+[ \t]+" org-done-string "\\>") > org-todo-line-tags-regexp > - (concat "^\\(\\*+\\)[ \t]*\\(" > + (concat "^\\(\\*+\\)[ \t]*\\(?:\\(" > (mapconcat 'regexp-quote org-todo-keywords "\\|") > - "\\)? *\\(.*?\\([ \t]:[a-zA-Z0-9:_@]+:[ \t]*\\)?$\\)") > + "\\)\\>\\)? *\\(.*?\\([ \t]:[a-zA-Z0-9:_@]+:[ \t]*\\)?$\\)") > org-looking-at-done-regexp (concat "^" org-done-string "\\>") > org-deadline-regexp (concat "\\<" org-deadline-string) > org-deadline-time-regexp > > > _______________________________________________ > Emacs-orgmode mailing list > Emacs-orgmode@gnu.org > http://lists.gnu.org/mailman/listinfo/emacs-orgmode > > -- Carsten Dominik Sterrenkundig Instituut "Anton Pannekoek" Universiteit van Amsterdam Kruislaan 403 NL-1098SJ Amsterdam phone: +31 20 525 7477