[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Have all the tags of a heading, with a tag hierarchy
From: |
Juan Manuel Macías |
Subject: |
Re: Have all the tags of a heading, with a tag hierarchy |
Date: |
Sun, 28 Aug 2022 16:21:55 +0000 |
Cletip Cletip writes:
> After multiple searches on the internet, I did not find the answer to
> my question (which is the subject of this mail): when calling the
> "org-get-tags" function, only the tags put on the heading, and not the
> inherited tags, are retrieved. How can I get the inherited tags as
> well? Does such a function already exist? Did I miss an essential
> variable?
In my case, I do manage to get the iherited tags. Do you have
`org-use-tag-inheritance' set to non-nil?
According to the `org-get-tags' docstring:
> According to ‘org-use-tag-inheritance’, tags may be inherited from
> parent headlines, and from the whole document, through
> ‘org-file-tags’. In this case, the returned list of tags contains tags
> in this order: file tags, tags inherited from parent headlines, local
> tags. If a tag appears multiple times, only the most local tag is
> returned.
and
> However, when optional argument LOCAL is non-nil, only return tags
> specified at the headline.
Best regards,
Juan Manuel
--
--
------------------------------------------------------
Juan Manuel Macías
https://juanmanuelmacias.com
https://lunotipia.juanmanuelmacias.com
https://gnutas.juanmanuelmacias.com
- Have all the tags of a heading, with a tag hierarchy, Cletip Cletip, 2022/08/28
- Re: Have all the tags of a heading, with a tag hierarchy,
Juan Manuel Macías <=
- Re: Have all the tags of a heading, with a tag hierarchy, Cletip Cletip, 2022/08/28
- Re: Have all the tags of a heading, with a tag hierarchy, Daniel Fleischer, 2022/08/28
- Re: Have all the tags of a heading, with a tag hierarchy, Cletip Cletip, 2022/08/29
- Re: Have all the tags of a heading, with a tag hierarchy, Ihor Radchenko, 2022/08/29
- Re: Have all the tags of a heading, with a tag hierarchy, Cletip Cletip, 2022/08/31
- Re: Have all the tags of a heading, with a tag hierarchy, Cletip Cletip, 2022/08/31
- Re: Have all the tags of a heading, with a tag hierarchy, Cletip Cletip, 2022/08/31