From dd4e57b1d1176d79ba7327ce36a35b496b5fb0bd Mon Sep 17 00:00:00 2001 From: Martin Kampas 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): Add new test. Test commit 894ec00: 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 ecf41e9e3..59fd90257 100644 --- a/testing/lisp/test-org.el +++ b/testing/lisp/test-org.el @@ -5731,6 +5731,15 @@ Paragraph" (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