From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id SLxaI2qWC2O+dgEAbAwnHQ (envelope-from ) for ; Sun, 28 Aug 2022 18:23:06 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id eHQ7I2qWC2PE9AAA9RJhRA (envelope-from ) for ; Sun, 28 Aug 2022 18:23:06 +0200 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id CF9C042D8A for ; Sun, 28 Aug 2022 18:23:05 +0200 (CEST) Received: from localhost ([::1]:52662 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oSL3w-0007XA-W7 for larch@yhetil.org; Sun, 28 Aug 2022 12:23:05 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:52712) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oSL34-0007X0-AA for emacs-orgmode@gnu.org; Sun, 28 Aug 2022 12:22:11 -0400 Received: from mout01.posteo.de ([185.67.36.65]:57063) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oSL31-0002sO-GS for emacs-orgmode@gnu.org; Sun, 28 Aug 2022 12:22:09 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id 2EE5B240028 for ; Sun, 28 Aug 2022 18:22:01 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1661703724; bh=+O4imgwzPWdwO51p+eTYRfeR3bHJF5NYwt60QfbmR5k=; h=From:To:Cc:Subject:Date:From; b=RqATsD/oy8Y42d1zHX5G+qhivm5IMhVFscSZuD2KALm3VasxU42Gf0e6KlD91XtyI EKurr2TkL37h3XLPWPtzASSwWmYHXbJ47C9+Q9MynObzU1U88CCqLP73y8LN3E22Nx H2qqNbT31BlQu99251xLACgwSxhE2JY7gnSbhkHzvUiuZKP2Q2mr7ATqltdgo6g0sk bs/eGYsAghQLPDkoEk5mntDFhEO8Efgc7vJwE8QB+E4pcdtfehTTtt3s4Q6BbRJauL X/qfNInuVCeM44s4q8HarfofDjQohngvMvnl5hR1lsoh8TvH8M9TQ8SpsIjxHoDwwi EvuQwnAmteEdA== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4MFzNn17PYz9rxK; Sun, 28 Aug 2022 18:21:58 +0200 (CEST) From: =?utf-8?Q?Juan_Manuel_Mac=C3=ADas?= To: Cletip Cletip Cc: orgmode Subject: Re: Have all the tags of a heading, with a tag hierarchy References: Date: Sun, 28 Aug 2022 16:21:55 +0000 In-Reply-To: (Cletip Cletip's message of "Sun, 28 Aug 2022 17:37:25 +0200") Message-ID: <87fshgnxss.fsf@posteo.net> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=185.67.36.65; envelope-from=maciaschain@posteo.net; helo=mout01.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1661703786; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=+O4imgwzPWdwO51p+eTYRfeR3bHJF5NYwt60QfbmR5k=; b=ZUIPxRvcGoF0RSGLsKWd2AUNyEpmGR0xM0aIUfYKYgvprXa3wqFXeYMpcIksJL/TY18zKZ FGaC37x2xGXbVyaoHtsRERp0FSKp9ygiDl+yq5sxRJwRcfTtuNmJ2VEh6PicBgAnFARAb3 rQnidB4rEs42GXrqF+USpJrYczlgWqS4W5fHqXosbR/Hw/Qpquabd3XSkKZApnOCCV4gcm 3Pdmaa/NX9JjVVcMi60PdXt/0KqOnuOmQUPvGaK38U2JQ/HaF1vQUREislTqQe6gq7bZkf ZuIRwRl0w956/u/1f8uP+B5YH1cqK22qn9eSL+O74wF/q4/+vaQK9AFPEakxZg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1661703786; a=rsa-sha256; cv=none; b=jAbmFep5R+9yfJjHjCD6ByOPLqMXoUa7E4pgese+INQNimMILm6jNqSrQpn0tUkKHR6Ha5 HmQZdLA3pwyjwD45ijeKaBRPucovjHY93ik2a7NnSHlwNe0tdXsLulYG/9aLkSHDl7XFEj KZrEjiZzi8T/jLafYAGwS5iHD1MGFgfV/Ibk579kwwQvVjRxpkkhU7Lv3A46W92IqPkjWp 0QNkoyUu97OytF08CO0+NaHQ8IVePJYUcRE2pZQn9+MA5JL3k4DgijMLwQWHetbDBTcy2/ 0IzRCI+NuykhVGkoCrCPR1qp3oM64vS4eOMazq17JiyuL8at1p4t9JqigjMA5g== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b="RqATsD/o"; dmarc=pass (policy=none) header.from=posteo.net; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -7.40 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b="RqATsD/o"; dmarc=pass (policy=none) header.from=posteo.net; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: CF9C042D8A X-Spam-Score: -7.40 X-Migadu-Scanner: scn0.migadu.com X-TUID: 5r2+lST4O76J 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 =E2=80=98org-use-tag-inheritance=E2=80=99, tags may be inher= ited from > parent headlines, and from the whole document, through > =E2=80=98org-file-tags=E2=80=99. 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=20 --=20 -- ------------------------------------------------------ Juan Manuel Mac=C3=ADas=20 https://juanmanuelmacias.com https://lunotipia.juanmanuelmacias.com https://gnutas.juanmanuelmacias.com