From mboxrd@z Thu Jan 1 00:00:00 1970 From: Karl Voit Subject: Re: Make tag inheritance explicit Date: Tue, 23 Jan 2018 15:44:11 +0100 Message-ID: <2018-01-23T15-38-21@devnull.Karl-Voit.at> References: <2018-01-23T11-18-52@devnull.Karl-Voit.at> Reply-To: Karl Voit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:42089) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1edzoX-0005k5-4O for emacs-orgmode@gnu.org; Tue, 23 Jan 2018 09:44:42 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1edzoT-0006rV-4d for emacs-orgmode@gnu.org; Tue, 23 Jan 2018 09:44:41 -0500 Received: from [195.159.176.226] (port=54601 helo=blaine.gmane.org) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1edzoS-0006qL-TX for emacs-orgmode@gnu.org; Tue, 23 Jan 2018 09:44:37 -0500 Received: from list by blaine.gmane.org with local (Exim 4.84_2) (envelope-from ) id 1edzmF-00052c-FJ for emacs-orgmode@gnu.org; Tue, 23 Jan 2018 15:42:19 +0100 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: emacs-orgmode@gnu.org Hi, * Kaushal Modi wrote: > > On Tue, Jan 23, 2018, 5:24 AM Karl Voit 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? Always, yes. > 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. My current export methods are: HTML, pandoc>docx, latex>PDF > 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). Check. > 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. You mean for developing a custom-made function that provides the feature I was asking for? Yes, this helps a lot to me. First, I wanted to get a confirmation that this feature is not already part of Org-mode because (as usual) this seemed obvious to me when using export functionality ;-) -- get mail|git|SVN|photos|postings|SMS|phonecalls|RSS|CSV|XML into Org-mode: > get Memacs from https://github.com/novoid/Memacs < Personal Information Management > http://Karl-Voit.at/tags/pim/ Emacs-related > http://Karl-Voit.at/tags/emacs/