From mboxrd@z Thu Jan 1 00:00:00 1970 From: Kaushal Modi Subject: Re: Make tag inheritance explicit Date: Tue, 23 Jan 2018 12:16:17 +0000 Message-ID: References: <2018-01-23T11-18-52@devnull.Karl-Voit.at> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="001a114931482c21700563708411" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:60382) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1edxV8-00022S-Hx for emacs-orgmode@gnu.org; Tue, 23 Jan 2018 07:16:31 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1edxV7-0008DI-EV for emacs-orgmode@gnu.org; Tue, 23 Jan 2018 07:16:30 -0500 Received: from mail-yw0-x242.google.com ([2607:f8b0:4002:c05::242]:34929) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1edxV7-0008D3-9C for emacs-orgmode@gnu.org; Tue, 23 Jan 2018 07:16:29 -0500 Received: by mail-yw0-x242.google.com with SMTP id u21so94159ywc.2 for ; Tue, 23 Jan 2018 04:16:29 -0800 (PST) In-Reply-To: <2018-01-23T11-18-52@devnull.Karl-Voit.at> 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: Karl Voit Cc: emacs-org list --001a114931482c21700563708411 Content-Type: text/plain; charset="UTF-8" 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? 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 --001a114931482c21700563708411 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable