From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id qArhEV0kD2NBdwAAbAwnHQ (envelope-from ) for ; Wed, 31 Aug 2022 11:05:33 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id MNzrEV0kD2PQKQEA9RJhRA (envelope-from ) for ; Wed, 31 Aug 2022 11:05:33 +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 AE93121BBD for ; Wed, 31 Aug 2022 11:05:32 +0200 (CEST) Received: from localhost ([::1]:41876 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oTJf9-0006sX-Ky for larch@yhetil.org; Wed, 31 Aug 2022 05:05:31 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:49594) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oTJba-0006oh-DQ for emacs-orgmode@gnu.org; Wed, 31 Aug 2022 05:02:20 -0400 Received: from mail-ej1-x631.google.com ([2a00:1450:4864:20::631]:42925) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oTJbY-0001qk-5F for emacs-orgmode@gnu.org; Wed, 31 Aug 2022 05:01:49 -0400 Received: by mail-ej1-x631.google.com with SMTP id p16so23884405ejb.9 for ; Wed, 31 Aug 2022 02:01:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc; bh=9P5v8EExAJiChS1xvxSGhKbV3igEufPPqKJMPSLXhpU=; b=TXmKVuuITorY423qeRS3oJ55gj2LGZJbLsE+a6WCcTbKterVJmmO6N4iUxLRE+J8BU okzwQlxxZ8RVu2CK752Y93Xs+a+ltZBamQwTAClAYRlqT6UVNIVMBAJYluyLplx7pSZb a/gM+x/6TN/0TVnC9jpMXOT8Bn+Bi0dJH0PYAer190EPmHMb6JGP1NstxeZYosqdz9Id ONV+b5KVYS9hnk8MvrqX0n0/gE8s52LZ75a6lz+CZPWaDtt7uV2JdcZGkCRYqLiJ+Idr RBmJiYW0LnoDNe8E+WtYKVMbTT5UDZfGAJRl99tAttW39MQ4hW6jk+ZkNBHhQPdD67zu ZPqw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc; bh=9P5v8EExAJiChS1xvxSGhKbV3igEufPPqKJMPSLXhpU=; b=RQzF/lCYOv24Zx6vajKj4WUv22ACA+SmuCKsldQMS7vKfHZLv6kYhvhEHCI9/SoEeb vSuKFWyYLU2XbbVaV+jc4NIV/Kg4y93WGqlGsHU3NSsP2ZbGtKVwOGQNTRi+XzFD5f87 qR2TtkoTUXTSOAVfz6SwNCaEJ8SO+U8vJu4TlHy+2UsVR66E/mHhF3yzYZ0xTTDAhPSo SunXqmrFpYUyE2I08ijK85bY+2bpVPIzl5cjcF5SgrmaTvBFPSK+BYUNcLsB4V92/+XI D554oZS7hH1mb0yad1B/S2Eijrsm4tU+qdjgUPXsCiubfkWHZaISNAkMM9K72puUDQ5z lwJg== X-Gm-Message-State: ACgBeo3vXF+gqR/d8+EE7TEamWaICzbgN5q45rwbwgA7jBFDBssIG+M/ UdT55pBmkwaVm0rx94/Eb0iFZGEF+8EUbDn3cz8= X-Google-Smtp-Source: AA6agR6gtc18FVDzSxuX/dnJqe87KJf7xY+F+oPuNYAtRgJADwOpQUidpQUCV6W6URoqX+V6GnGgcTw/FZKX9h5zqkQ= X-Received: by 2002:a17:907:a218:b0:731:2b2b:f34 with SMTP id qp24-20020a170907a21800b007312b2b0f34mr19914700ejc.404.1661936503769; Wed, 31 Aug 2022 02:01:43 -0700 (PDT) MIME-Version: 1.0 References: <87fshgnxss.fsf@posteo.net> <87bks3qn1w.fsf@localhost> In-Reply-To: <87bks3qn1w.fsf@localhost> From: Cletip Cletip Date: Wed, 31 Aug 2022 11:01:32 +0200 Message-ID: Subject: Re: Have all the tags of a heading, with a tag hierarchy To: Ihor Radchenko Cc: Daniel Fleischer , =?UTF-8?Q?Juan_Manuel_Mac=C3=ADas?= , orgmode Content-Type: multipart/alternative; boundary="000000000000f2500d05e785be23" Received-SPF: pass client-ip=2a00:1450:4864:20::631; envelope-from=clement020302@gmail.com; helo=mail-ej1-x631.google.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 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, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, 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=1661936733; 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:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=9P5v8EExAJiChS1xvxSGhKbV3igEufPPqKJMPSLXhpU=; b=XMLlcZoa4ib6mysGX5QL6Y6IyGvhg7ZxnhEoN5PIt90bwCr56hFPXxy9pkERoqgjpsCeZP F0/bYdvXBSA445aD6UHJBWqV8vGUmmSLbJJgX0LXIAZ3eFxO+hXufPQTd92C1KZKpnxM2H SbJkxXy8NBo8kcpa1cEDu2Iurj2N2VI69urU6agjTcGC1awEiO7bQW0w9ye3wlcPQJpHlc 3c2Upf9CcnSv67wgJyvCXwXEgcT0VMKAlDtua0qkZ23+AZHBu64QtY/M0zXVRsIkpFqd4s dI2h6nwrop7AOpslMjniE8lzh5TCG+Ko7LcqRVC3l7ucRsOAR0EcqjI4xx7lsQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1661936733; a=rsa-sha256; cv=none; b=tWyD51RnIZVpSryCwtXlJ/vZ5UCQR4gXllh6c0Zl2Sr5hNdh4+S1Jrk2LDHfdNKvJI/gJr 9wZOumwSPoTtD4YADZptWK+dV9UFJeF14fhreyN0xcSglAeaO68QYjSAHWamZCplIA5m9G jHMIfyAnYth0CBJOK7wYaHvMOLWmtHtGdBy3uo3mAohUM50b7pl0qV27n4lmm3P4lh+7Ex VS0cGRGAHAr6U2ramA3v1aH/JvisTWG+p4m+BuOauaMwSq6oO7vx7kqQej9VKu7yeXtzZ0 D7/nCfA7rDKut7TbXTqkqw3SCNS6WoOddZq3KtxJ/nfzgRlDTV/RoDS674zVdA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=TXmKVuuI; dmarc=pass (policy=none) header.from=gmail.com; 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: -2.29 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=TXmKVuuI; dmarc=pass (policy=none) header.from=gmail.com; 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: AE93121BBD X-Spam-Score: -2.29 X-Migadu-Scanner: scn1.migadu.com X-TUID: eIPx9hGr6bP+ --000000000000f2500d05e785be23 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Thank you for your answer, and sorry for the late reply Ok I think I understood the mechanism, but I don't understand how to use this regular expression (the one given by, for example, (org-tags-expand "GTD") which gives me the regular expression "with the other tags" ) I see perfectly the idea : a search is done with org-agenda with this regular expression. But I can't use it. The problem is that I don't know how to use this regular expression with a function that returns the tags. Do you have any clue (piece of code where it is already used ? A function allowing me to translate this regular expression into a simple tag? Do I just have to convert this regular expression into a list of tags? Is it possible? I'm asking myself all these questions because I just don't know where to go ^^) Thanks in advance for your future answer. Le lun. 29 ao=C3=BBt 2022 =C3=A0 13:57, Ihor Radchenko = a =C3=A9crit : > Cletip Cletip writes: > > > Yes I understand both perfectly. I think some people (like me) would li= ke > > to connect them, others would not want to bring them together. > > But how to get the hierarchy (or the families) used by org agenda with = a > > function like "org-get-tags" ? > > You will probably need to combine org-get-tags output with regexp > generated by org-tags-expand. Tag hierarchy in Org is a just a search > wrapper - no real tags are changed in the file; only the matching. > > -- > Ihor Radchenko, > Org mode contributor, > Learn more about Org mode at https://orgmode.org/. > Support Org development at https://liberapay.com/org-mode, > or support my work at https://liberapay.com/yantar92 > --000000000000f2500d05e785be23 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Thank you for your answer, and sorry for the late reply
Ok I think I understood the mechanism, but I don't understand how = to use this regular expression (the one given by, for example,
(org-tags= -expand "GTD")
which gives me the regular expression "wit= h the other tags"
)

I see perfectly the idea : a search is d= one with org-agenda with this regular expression. But I can't use it.
The problem is that I don't know how to use this regular expressi= on with a function that returns the tags. Do you have any clue (piece of co= de where it is already used ? A function allowing me to translate this regu= lar expression into a simple tag? Do I just have to convert this regular ex= pression into a list of tags? Is it possible? I'm asking myself all the= se questions because I just don't know where to go ^^)

Thanks in= advance for your future answer.


Le=C2=A0lun. 29 ao=C3=BBt 2022 =C3= =A0=C2=A013:57, Ihor Radchenko <ya= ntar92@gmail.com> a =C3=A9crit=C2=A0:
Cletip Cletip <clement020302@gmail.com> writes:
> Yes I understand both perfectly. I think some people (like me) would l= ike
> to connect them, others would not want to bring them together.
> But how to get the hierarchy (or the families) used by org agenda with= a
> function like "org-get-tags" ?

You will probably need to combine org-get-tags output with regexp
generated by org-tags-expand. Tag hierarchy in Org is a just a search
wrapper - no real tags are changed in the file; only the matching.

--
Ihor Radchenko,
Org mode contributor,
Learn more about Org mode at https://orgmode.org/.
Support Org development at https://liberapay.com/org-mode,
or support my work at https://liberapay.com/yantar92
--000000000000f2500d05e785be23--