From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.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 uFJ0A7mpDGMAKQEAbAwnHQ (envelope-from ) for ; Mon, 29 Aug 2022 13:57:45 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id gLOcArmpDGOCVQEAG6o9tA (envelope-from ) for ; Mon, 29 Aug 2022 13:57:45 +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 93E7631D24 for ; Mon, 29 Aug 2022 13:57:44 +0200 (CEST) Received: from localhost ([::1]:52414 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oSdOh-0000XB-OD for larch@yhetil.org; Mon, 29 Aug 2022 07:57:43 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:44770) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oSdO7-0000Wo-3z for emacs-orgmode@gnu.org; Mon, 29 Aug 2022 07:57:07 -0400 Received: from mail-pl1-x632.google.com ([2607:f8b0:4864:20::632]:43981) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oSdO5-0007O5-Dp for emacs-orgmode@gnu.org; Mon, 29 Aug 2022 07:57:06 -0400 Received: by mail-pl1-x632.google.com with SMTP id l3so7728172plb.10 for ; Mon, 29 Aug 2022 04:57:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:message-id:date:references:in-reply-to:subject:cc:to :from:from:to:cc; bh=Ob31gD5h3rmTWgVzd5uDF77VKMrYKYI3KP8j6gIbEDY=; b=ER0+/i6Z9hIsWGes53kGHOQsKjydcIXDj5k1Byuv7sreuG5iQfMWf61678cnWyDSOh UbCB4UoDzjC3/Hk7qPSKiOHaF5FxWaPNgoFiTUTAlpagj8vbHAX15EUTbCVDXKdkNphn ePmJsDqWME/cdL9pL1FXlRmELR0ieaqAc9F78owVYGb/MfbmB/QCAR01oeIvm3H9ZUDz gQPEfgqgbf6wU1yQibqYQrH/0l/zEJ24ZJ0Tld9ZhZqnUKsKZte2bmrKm9QwrwESYZRa Piy38vlGjeycrYT1AkuD9FC4Kvps8TUwayRejIVzQ2A5lcpOLoXmZfCck/Zv2XUAnwzV BaKA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=mime-version:message-id:date:references:in-reply-to:subject:cc:to :from:x-gm-message-state:from:to:cc; bh=Ob31gD5h3rmTWgVzd5uDF77VKMrYKYI3KP8j6gIbEDY=; b=Avr5z4SyxcbQtaZUO/4v2xI+H8q8edSVtYNF97KOliCahl4j/AkPTymoiw2dOcK6r2 pHitbNuyyim9l66/B/kHJqQtmXPKcZGtnRf3jVGlLx2ka5t+E79YZPk5pqt3qIpl3NMq 01JXQGwEusZYdvgD9cgO+0giWS6EYedv9WqLEulhcCV+iw0MpbbWXYjWh91yjHR/DwfF YkrR+ozYaIR/bE/Z/3OEG+lo5frybLk+B0xJiAoTYRXe+d4H0OSLBJmDVpFhuAgU6/EP C3zxL/Xz28iTU7EDAV4rfVKacEtAPVh3cdgOWQIF4mu7f0UhONykDSPtdgfbtFJFUlnC T5XQ== X-Gm-Message-State: ACgBeo2jOLTmqsO44uyNaA5p6mkcyYI+Ph+XNdBTbK/2AyUhVJJ88bAK foOS6Coeg/y7PT2xdDYgUlY= X-Google-Smtp-Source: AA6agR40erStWkXR50VOgRmGZHta7ouMu+A5jWoFPeGfzryj7Jmc+znoBHH61HLdEQUZWgI9io1YOQ== X-Received: by 2002:a17:902:ab82:b0:174:9425:4b88 with SMTP id f2-20020a170902ab8200b0017494254b88mr7870051plr.144.1661774223597; Mon, 29 Aug 2022 04:57:03 -0700 (PDT) Received: from localhost ([2409:8a70:2b3:c8a0:8ec6:81ff:fe70:339d]) by smtp.gmail.com with ESMTPSA id j64-20020a625543000000b0050dc76281e0sm7038360pfb.186.2022.08.29.04.57.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 29 Aug 2022 04:57:03 -0700 (PDT) From: Ihor Radchenko To: Cletip Cletip Cc: Daniel Fleischer , Juan Manuel =?utf-8?Q?Mac?= =?utf-8?Q?=C3=ADas?= , orgmode Subject: Re: Have all the tags of a heading, with a tag hierarchy In-Reply-To: References: <87fshgnxss.fsf@posteo.net> Date: Mon, 29 Aug 2022 19:58:03 +0800 Message-ID: <87bks3qn1w.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2607:f8b0:4864:20::632; envelope-from=yantar92@gmail.com; helo=mail-pl1-x632.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, 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=1661774264; 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=Ob31gD5h3rmTWgVzd5uDF77VKMrYKYI3KP8j6gIbEDY=; b=ERAD1CholVy6CgC3wXQpxVZBE1m49f/ZHqaQv7ui2aTckq9dfqI1CvoYiPyzziuKKnaly4 j65mWDFTlHfior8Yn+ipIjOkm3SdCaicrtVQJybBDQTw5AF+T2LBYc4nVBLCAcAghIZ8vf elOtz4fO/zDTK2qnnE/oT+3Hno0XUsWvt/DHGGhyd+3VLWLOYbjoElFqTKDmm2JxSWG+Rr E2mrtz9ah4HkziOaxkHzLejfzEexe/Ls6z38rqYtLH4Xiqv5UWs/vkWdD/ml3VDZThRer4 FlmDTfIAKUdFLlMaiyxNmX28VKrxD4OwpRacYd/0qpk8XCtVdsdm776b1u1/2g== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1661774264; a=rsa-sha256; cv=none; b=Rtz7+A4/u1dlQJwuTLVX/bEHFERfP7hbhwnQC9lVCHZeeP/Do6x5SDAvB+kwnQp/tdCSOR H4Y5dlMsHUoUd8/0P54npumKysIRR57lUzES4b3YvUi/UQbNaRFdcjY0JoNSheqi7SOnjI twAQSQEyAlhVJNnNtBPtkLiarBOKviWTZj+lpVl3KptgkOmy0zzXmI7aBSuBJ5/WpXTg1+ Q0DkuIVGHTQhP+W+9uN4gV8okh0GyE9QoIj6n1Jg70kUTjzVh4jGoGY9xkfAb74HB87zp5 Jvkg8W1Y7Qqy25NVH/VHvvrtWNe1CV91BN4TpWai1OTEAN52UUSk+pGxHF4S2g== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b="ER0+/i6Z"; 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: -3.30 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b="ER0+/i6Z"; 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: 93E7631D24 X-Spam-Score: -3.30 X-Migadu-Scanner: scn1.migadu.com X-TUID: xxBME+WUNFkD 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