From: Kaushal Modi <kaushal.modi@gmail.com>
To: Karl Voit <news1142@karl-voit.at>
Cc: emacs-org list <emacs-orgmode@gnu.org>
Subject: Re: Make tag inheritance explicit
Date: Tue, 23 Jan 2018 12:16:17 +0000 [thread overview]
Message-ID: <CAFyQvY38bx_-rmswBfASviyR-kmWix2NAGqQDVmLcvhjNQ=+2A@mail.gmail.com> (raw)
In-Reply-To: <2018-01-23T11-18-52@devnull.Karl-Voit.at>
[-- Attachment #1: Type: text/plain, Size: 880 bytes --]
On Tue, Jan 23, 2018, 5:24 AM Karl Voit <devnull@karl-voit.at> wrote:
> Org-mode has perfect tag inheritance but unfortunately
> the export methods I am using do export the tags only to the
> headings they are assigned to and not to their sub-headings via
> inheritance.
Hello,
I am curious how you are exporting. Are you exporting using subtree scope?
I am asking because I am using the exact same style of tagging for my
posts, and I export using subtree scopes using ox-hugo,.. and I faced the
exact same challenge.
The trick is to:
1. Set org-use-tag-inheritance to t (temporarily in let so that it doesn't
populate the user-set global value).
2. Use `org-get-tags-at' with point on "Task 1" heading in your example.
`org-get-tags' returns a list of tags *only* at the current heading.
`org-get-tags-at' returns inherited tags too.
Hope this helps.
> --
Kaushal Modi
[-- Attachment #2: Type: text/html, Size: 1554 bytes --]
next prev parent reply other threads:[~2018-01-23 12:16 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-01-23 10:22 Make tag inheritance explicit Karl Voit
2018-01-23 12:16 ` Kaushal Modi [this message]
2018-01-23 14:44 ` Karl Voit
2018-01-23 15:15 ` Kaushal Modi
2018-01-23 17:33 ` Karl Voit
2018-01-23 12:17 ` Carsten Dominik
2018-01-23 14:55 ` Karl Voit
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CAFyQvY38bx_-rmswBfASviyR-kmWix2NAGqQDVmLcvhjNQ=+2A@mail.gmail.com' \
--to=kaushal.modi@gmail.com \
--cc=emacs-orgmode@gnu.org \
--cc=news1142@karl-voit.at \
/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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.