[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Empty headline titles unsupported: Bug?
From: |
Ihor Radchenko |
Subject: |
Re: Empty headline titles unsupported: Bug? |
Date: |
Sun, 23 May 2021 23:22:37 +0800 |
Nicolas Goaziou <mail@nicolasgoaziou.fr> writes:
>>> I suggest to not tag emptiness. `org-set-tags' could raise an error in
>>> this case.
>>
>> Of course, we can go the other way around and recognise "* :myheadline:"
>> as non-empty headline with no tags.
>
> There is no spoon^W way. Or, no way is satisfactory. "Don't tag empty
> headlines" is better.
>
> In any case, I'm not convinced Org Element is wrong here.
Either way is fine while it is consistent. I just tried to test some
edge cases with existing org-element code:
* TODO COMMENT :tag:
org-element-at-point returns :raw-value "".
* TODO :tag:
:raw-value ":tag:"
>> Though it will be more tricky than
>> simply changing `org-set-tags' as you suggest.
>
> It probably boils down to changing `org-tag-line-re'. I didn't check
> though.
org-tag-line-re and also org-tag-group-re, I think.
Best,
Ihor
Re: Empty headline titles unsupported: Bug?, Sebastian Miele, 2021/05/24
- Re: Empty headline titles unsupported: Bug?, David Masterson, 2021/05/24
- Re: Empty headline titles unsupported: Bug?, Sebastian Miele, 2021/05/25
- Re: Empty headline titles unsupported: Bug?, Sebastian Miele, 2021/05/25
- Re: Empty headline titles unsupported: Bug?, Nicolas Goaziou, 2021/05/25
- Re: Empty headline titles unsupported: Bug?, David Masterson, 2021/05/25
- Re: Empty headline titles unsupported: Bug?, Tim Cross, 2021/05/25
- Re: Empty headline titles unsupported: Bug?, David Masterson, 2021/05/26