From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id yFXNCoFFD2NYsAAAbAwnHQ (envelope-from ) for ; Wed, 31 Aug 2022 13:26:57 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id +Hv1CYFFD2NETgEAG6o9tA (envelope-from ) for ; Wed, 31 Aug 2022 13:26:57 +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 B25F117EB8 for ; Wed, 31 Aug 2022 13:26:56 +0200 (CEST) Received: from localhost ([::1]:45204 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oTLrz-0001vN-SJ for larch@yhetil.org; Wed, 31 Aug 2022 07:26:55 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:33562) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oTLr0-0001uu-2S for emacs-orgmode@gnu.org; Wed, 31 Aug 2022 07:25:54 -0400 Received: from mail-ej1-x62b.google.com ([2a00:1450:4864:20::62b]:34321) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oTLqy-0001Vn-2v for emacs-orgmode@gnu.org; Wed, 31 Aug 2022 07:25:53 -0400 Received: by mail-ej1-x62b.google.com with SMTP id y3so27742643ejc.1 for ; Wed, 31 Aug 2022 04:25:51 -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=OCcc3vzHjqk/Vcj66odQJuAUxVfXrQyoAiazhG9lMD4=; b=UKyEqVqL3eEWaBZXayRd69wzKacTMZAKELKl4TTlHI6z3yMjCnoNZGXCbrWRagjaU5 lrzpUUOp9rBh44uPAbFk44ShNSMcs5zBuVv3Rnrpzp3muubpaVlOQr0Ax6UvPUsRUINk O24r15im/Lyx+Xzdm7529sgewRuTltZ3Rm4wU/VlZTPzrWURHSZI5zb6FDwDtgDJODp6 S6TW07Wg38O2hobSsxPV+brC3cDeU64Pv2KgZ6a/QZjOxbrhsOroJ+abNw55pkbMx0ZX UMUDybhJsPyrvG+i8m4AnpR58RbgbGht1mNa9JWexnt/jikWST+EY1sNq83ATTQL6sBs nR0g== 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=OCcc3vzHjqk/Vcj66odQJuAUxVfXrQyoAiazhG9lMD4=; b=t83oqIQuBJ4GLsz2OWboWFICMdCbaHPjdN+ZOgdr6i5Ery6afvihaIXNf5ey3E1j53 hyLzrhR2VB6w44dqJgIYZXHgjDoe68poRrtTSYS7EnDwQitkKpmFDUYqA00YhSJ89v6O bKgZ/KS8DPGca2LUsv/cq/8jZOnZqaEF5zEKtHGdqaQKnU9wL0BxkCEYmMdo48y1LhpR 11TKn7D2sJIFzyygBq6L3OJOVj4yzNvkfVNdrqziDYK/emPxD6+yN7RACRsakYD9ead8 afHjxN1so+hCCneQBmEC/d0bIm1VoBa/xbDCeAD6jpu/GrWQA1x0g2dUMdfrHmqQiy5R ZyUw== X-Gm-Message-State: ACgBeo2zkz2Z3w5noVsGENXrGjBxFvai1awbSANktX++05duU5M0EynS ipqJgZ3dMIwsG4Clmdrw+JyREmctj/Roa9eFTyU= X-Google-Smtp-Source: AA6agR4HHs3OBLAmfLvZfljbEGoN7vdX42GhjswrSQZP50GbYOtsn/BmiKZn+AKVjjPmlLPirPwjVf6oXAI4ASQ4JUg= X-Received: by 2002:a17:907:929:b0:731:3bb6:d454 with SMTP id au9-20020a170907092900b007313bb6d454mr19895683ejc.96.1661945150449; Wed, 31 Aug 2022 04:25:50 -0700 (PDT) MIME-Version: 1.0 References: <87fshgnxss.fsf@posteo.net> <87bks3qn1w.fsf@localhost> In-Reply-To: From: Cletip Cletip Date: Wed, 31 Aug 2022 13:25:38 +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="000000000000542a7705e787c2f4" Received-SPF: pass client-ip=2a00:1450:4864:20::62b; envelope-from=clement020302@gmail.com; helo=mail-ej1-x62b.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=1661945216; 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=OCcc3vzHjqk/Vcj66odQJuAUxVfXrQyoAiazhG9lMD4=; b=ePrHwO4pAqo/RLhyy6nWR37xXbBcZvdKCMp1AGh9P5X6TYx2qKC1uRQvNZmMqwqMr9jrzS W7I3T9j4LH5YWh3NNP405MVC8S0ZBaDRsl8gIKj+m9lBjjPyRk2ippn5chWO73p1/NQccF sLm8PN1TB1Iir4ohEYTvJnGLjWmtNFexdPcO1foIj2uSfO3Zvp6uEYgzPZAzeMb9vymixi g+i8jkVvwtEiwXpBUkn0pwdHHU2iB8//rXncfXtFplt4rI5yYqOApoX+qv7YLJALJLfUSm ENQsGq/VcYaUQjY1JUj7ZEzmYDv9Vem9QsIQinL/q0diwaaO7UXcoEaYR3co8w== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1661945216; a=rsa-sha256; cv=none; b=TiF/ZxCGgped2FS78REyU7Va+XnxuM1UrRRlr1fy1QWjrdO2Ebug/VIeOsWyMyCXL9cT7P 0hr4ggL39xW13qJ7/RHygkB8XtKtY9mKeh7X1iN+QnHVNboGy/czJSM6Vzv3ywXeMYKHS+ 8ocr7We1l4fl+EGYud4t6wuPLM4K0lVxNnPibJsVOg1oFwCeO+ksP8JwDmxsjaVKs+LuJ3 U+LO81oz4qoDQnu4ZLjkWwIRkKqJORyjk6OyGWy01FfzJCjsx6gaK3bg1kNnlgWmt1k0Jw EwNUZf/5yBDyi6WgbWMUNlKBHTr5EMLkmHqc2om8XOCNbgkRkgbLqaCFLj1j4A== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=UKyEqVqL; 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.28 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=UKyEqVqL; 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: B25F117EB8 X-Spam-Score: -2.28 X-Migadu-Scanner: scn1.migadu.com X-TUID: 7+xEzGwPUygA --000000000000542a7705e787c2f4 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Sorry, I found the solution : i must just give one argument non-nil to the function "org-tags-expand". Like this : (org-tags-expand "GTD" t) It's perfect, thanks a lot for your help ! Le mer. 31 ao=C3=BBt 2022 =C3=A0 11:01, Cletip Cletip a =C3=A9crit : > 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 the= se > 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 >> like >> > 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 >> > --000000000000542a7705e787c2f4 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Sorry, I found the solution : i must just give one argumen= t non-nil to the function "org-tags-expand".
Like this :=E2= =80=AF
(org-tags-expand "GTD" t)

It's perfect, thanks a lot for your help !=C2=A0

Le=C2=A0mer. 3= 1 ao=C3=BBt 2022 =C3=A0=C2=A011:01, Cletip Cletip <clement020302@gmail.com> a =C3=A9crit=C2=A0:
= 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 regul= ar expression (the one given by, for example,
(org-tags-expand "GTD= ")
which gives me the regular expression "with the other tags&= quot;
)

I see perfectly the idea : a search is done with org-agen= da 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 functio= n that returns the tags. Do you have any clue (piece of code where it is al= ready used ? A function allowing me to translate this regular expression in= to a simple tag? Do I just have to convert this regular expression into a l= ist of tags? Is it possible? I'm asking myself all these questions beca= use 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, Ih= or 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
--000000000000542a7705e787c2f4--