From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bastien Subject: Re: Possible bug in parsing / clarification of syntax Date: Tue, 10 Apr 2012 19:31:40 +0200 Message-ID: <87aa2j4hoj.fsf@gnu.org> References: <4F53DEF7.8080604@gmx.de> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Return-path: Received: from eggs.gnu.org ([208.118.235.92]:50659) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SHeti-0003oN-QY for emacs-orgmode@gnu.org; Tue, 10 Apr 2012 13:30:35 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SHete-0006Xh-M2 for emacs-orgmode@gnu.org; Tue, 10 Apr 2012 13:30:30 -0400 Received: from incoming2.cnam.fr ([163.173.128.34]:38903) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SHete-0006XS-Fn for emacs-orgmode@gnu.org; Tue, 10 Apr 2012 13:30:26 -0400 In-Reply-To: <4F53DEF7.8080604@gmx.de> (Simon Thum's message of "Sun, 04 Mar 2012 22:30:31 +0100") 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: Simon Thum Cc: Charles Sebold , emacs-orgmode@gnu.org --=-=-= Content-Type: text/plain Hi Simon, Simon Thum writes: > I have found some irritating behaviour, potentially a bug. I have a block > agenda which goes like: > > tags-todo "@home&TODO=\"TODO\" > > and it displays a certain org line that reads > > **** TODO_ state triggers Can you try the following patch (against latest hotfix HEAD) and report? Charles, can you let me know if this breaks anything in your usage of `org-map-entries'? David's original fix want to the right direction, except that we also want to match "* TODO" as a headline. Thanks for testing this quite heavily. --=-=-= Content-Type: text/x-patch Content-Disposition: inline; filename=fix-mismatched-todo-entries.patch diff --git a/lisp/org.el b/lisp/org.el index 3dd8f88..ea5ef7c 100644 --- a/lisp/org.el +++ b/lisp/org.el @@ -12824,7 +12824,7 @@ headlines matching this string." " *\\(\\<\\(" (mapconcat 'regexp-quote org-todo-keywords-1 "\\|") (org-re - "\\>\\)\\)? *\\(.*?\\)\\(:[[:alnum:]_@#%:]+:\\)?[ \t]*$"))) + "\\>\\)\\)?\\([ \t]*\\|$\\)+\\(.*?\\)\\(:[[:alnum:]_@#%:]+:\\)?[ \t]*$"))) (props (list 'face 'default 'done-face 'org-agenda-done 'undone-face 'default --=-=-= Content-Type: text/plain -- Bastien --=-=-=--