Hi Bastien, > If you have time to add tests, that'd be great, as Nicolas suggested.
Here you are. Best Regards, Martin >From bd8059e18fa3bd2977415449139fc626d03817a3 Mon Sep 17 00:00:00 2001 From: Martin Kampas <martin.kampas@hidden> Date: Thu, 22 Mar 2018 06:20:31 +0100 Subject: [PATCH] Extend match-sparse-tree test for tag hierarchies * test-org.el (test-org/match-sparse-tree): Extend test after commit 894ec00 (org.el: Fix recursion stop condition when expanding tags). --- testing/lisp/test-org.el | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/testing/lisp/test-org.el b/testing/lisp/test-org.el index e97dfe775..8d8b36f86 100644 --- a/testing/lisp/test-org.el +++ b/testing/lisp/test-org.el @@ -5765,6 +5765,15 @@ Paragraph<point>" (org-match-sparse-tree nil "Lev_1") (search-forward "H4") (org-invisible-p2))) + (should-not + (org-test-with-temp-text + "#+TAGS: [ Lev_1 : Lev_2 ]\n +#+TAGS: [ Lev_2 : Lev_3 ]\n +#+TAGS: { Lev_3 : Lev_4 }\n +* H\n** H1 :Lev_1:\n** H2 :Lev_2:\n** H3 :Lev_3:\n** H4 :Lev_4:" + (org-match-sparse-tree nil "Lev_1+Lev_3") + (search-forward "H4") + (org-invisible-p2))) ;; Match regular expressions in tags (should-not (org-test-with-temp-text -- 2.16.2