From: "Juan Manuel Macías" <maciaschain@posteo.net>
To: Cletip Cletip <clement020302@gmail.com>
Cc: orgmode <emacs-orgmode@gnu.org>
Subject: Re: Have all the tags of a heading, with a tag hierarchy
Date: Sun, 28 Aug 2022 16:21:55 +0000 [thread overview]
Message-ID: <87fshgnxss.fsf@posteo.net> (raw)
In-Reply-To: <CAPHku6NN2k+BPo=aYdEMHKgo6v0hHCxrr=cpoX8dgD57-RQGow@mail.gmail.com> (Cletip Cletip's message of "Sun, 28 Aug 2022 17:37:25 +0200")
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
next prev parent reply other threads:[~2022-08-28 16:23 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-08-28 15:37 Have all the tags of a heading, with a tag hierarchy Cletip Cletip
2022-08-28 16:21 ` Juan Manuel Macías [this message]
2022-08-28 16:34 ` Cletip Cletip
2022-08-28 19:15 ` Daniel Fleischer
2022-08-29 11:41 ` Cletip Cletip
2022-08-29 11:58 ` Ihor Radchenko
2022-08-31 9:01 ` Cletip Cletip
2022-08-31 11:25 ` Cletip Cletip
2022-08-31 11:31 ` Cletip Cletip
2022-09-01 7:04 ` Ihor Radchenko
2022-09-02 12:47 ` Cletip Cletip
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87fshgnxss.fsf@posteo.net \
--to=maciaschain@posteo.net \
--cc=clement020302@gmail.com \
--cc=emacs-orgmode@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).