From mboxrd@z Thu Jan 1 00:00:00 1970 From: Christian Moe Subject: [BUG?] New group tag feature matches too much Date: Fri, 12 Apr 2013 10:29:16 +0200 Message-ID: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:56038) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UQZK5-0002u6-PA for Emacs-orgmode@gnu.org; Fri, 12 Apr 2013 04:27:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UQZK4-0000U4-44 for Emacs-orgmode@gnu.org; Fri, 12 Apr 2013 04:27:05 -0400 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: Emacs-orgmode@gnu.org Cc: Bastien Hi, I was delighted to discover the new group tags feature in 8.0, but I'm getting strange results trying it out with a sparse tree. It looks like matching a group tag matches not only the subtags, but also spuriously matches any tag that *contains* the string of a subtag. So when I match for the tag 'pop' in the below example, I get not only Entry 5 which is tagged 'abba', but also Entry 7, tagged 'yabbadabbadoo'. A tag match for 'abba' correctly returns only Entry 5. Example buffer: #+TAGS: { a : aa ab } { rock : ac dc } { pop : abba } * Entry 1 (grouptag) :a: * Entry 2 (with subtag) :aa:bb: * Entry 3 (no subtag) :ac:dc: * Entry 4 (with subtag) :bb:ab:dd: * Entry 5 (no subtag) :bb:cc:abba: * Entry 6 (no subtag, no 'a' character in tags) :bb:dc:bbdb: * Entry 7 (no subtag, 'abba' sequence in tag) :yabbadabbadoo: * Some sparse tree results Doing `C-c / m' with the following tags produces the following results: - rock :: matches Entry 3 and 6, CORRECT - a :: spurious match of every Entry except 6, the only one without any tag with an `a' character, WRONG - Expected: match Entry 1, 2, 4 - ab :: matches Entry 4, CORRECT - abba :: matches Entry 5, CORRECT (no spurious match of Entry 7) - pop :: matches Entry 5 and 7, WRONG (spurious match of Entry 7) Yours, Christian