Fabian Kurmann <fabian.kurm...@uni-duesseldorf.de> writes: > I can reproduce it with the sample in the annex, following the steps > below: > > - Start Emacs with 'emacs -Q' > - Open a new Org file > - Add the contents of the Annex > - Type 'C-c /' and then 'p' for property. > - Select "TEST-HELLO" > - Select any of the two values > > Expected behaviour: produce a sparse tree. > > Actual result: no sparse tree.
Thanks for reporting! Confirmed. This is because `org-sparse-tree' will produce the following matcher: TEST-HELLO="one" Which is interpreted as: Has tag "TEST" and does not have property "HELLO" set to "one". AFAIK, there is currently no mechanism to escape "-" in matcher string. `org-make-tags-matcher' assumes that property name can only contain alphanumeric charters and underscore. -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at <https://orgmode.org/>. Support Org development at <https://liberapay.com/org-mode>, or support my work at <https://liberapay.com/yantar92>