[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Fwd: [BUG] Sparse tree does not work on properties with dashes
From: |
Ihor Radchenko |
Subject: |
Re: Fwd: [BUG] Sparse tree does not work on properties with dashes |
Date: |
Thu, 18 Jan 2024 15:44:53 +0000 |
Ihor Radchenko <yantar92@posteo.net> writes:
>> 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".
`org-make-tags-matcher' is now supposed to handle \-escaped dashes in
properties. However, it does not seem to work:
(org-make-tags-matcher "TEST\-HELLO=\"one\"" t) yields
(progn
(setq org-cached-props nil)
(or
(and
(not (string= (or (org-cached-entry-get nil \"HELLO\") \"\") \"one\"))
(member \"TEST\" tags-list))))
Jens, do you have any ideas?
--
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>
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Re: Fwd: [BUG] Sparse tree does not work on properties with dashes,
Ihor Radchenko <=