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.