From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.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 wJ93FJ8xEGPoTAAAbAwnHQ (envelope-from ) for ; Thu, 01 Sep 2022 06:14:23 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id 2FEwFJ8xEGPfOQAAauVa8A (envelope-from ) for ; Thu, 01 Sep 2022 06:14:23 +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 E74AB3619F for ; Thu, 1 Sep 2022 06:14:22 +0200 (CEST) Received: from localhost ([::1]:50050 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oTbav-00055t-Hg for larch@yhetil.org; Thu, 01 Sep 2022 00:14:21 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:38174) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oTbaP-00055k-4F for emacs-orgmode@gnu.org; Thu, 01 Sep 2022 00:13:49 -0400 Received: from mail-pj1-x1034.google.com ([2607:f8b0:4864:20::1034]:33734) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oTbaN-0006B7-EY for emacs-orgmode@gnu.org; Thu, 01 Sep 2022 00:13:48 -0400 Received: by mail-pj1-x1034.google.com with SMTP id i7-20020a17090adc0700b001fd7ccbec3cso4953327pjv.0 for ; Wed, 31 Aug 2022 21:13:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:user-agent:from:to:cc; bh=+CBZsub3uQ0609djCncVDdf0Ui2811oTqmW0nILCOvo=; b=bEKTdmPX1kSJ2IskGu7ErJpDjcO2C9UY4wve5rGdaBrpFEF9H1V1gX+27irEPph54i DnPJO0t2XOZFcgmOE18euw8wK1tzzvVsR409OGJ+NlH4q/WDAw5WIiOINsXHzQbEQ2WL wTI0dcPGTekvG3RfrId29MCl+CMMtKTeJaDm4LqqDncMU8DZzCCXbTmdTPUJXraPGmik s7ePgVno6cBifgILPSBMKBcEMOQU94AGLrSdjCdq4Wp39PSkkz8tH1MNTgbFTYf+vLvH mDJKUcQmh54TswYel7n3hDdQjm2kmLq6cjAuzA54uy/XPL8x30dfsW5l8SLm1TKMrqu5 hPpg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:user-agent:x-gm-message-state:from:to:cc; bh=+CBZsub3uQ0609djCncVDdf0Ui2811oTqmW0nILCOvo=; b=IEcgQTdjTEJkxe9QZxbqF2tHZQWFXwDElz/lmVysajOFSjYkZR/Bo5SlOggiJa1Uwa +QSwRZcDWFvfabNuCGHs5veJDat6w1Ify2lj9STut1TRSm080xx1QU1ABjvFjkewJ0kf Qg0ggrD8aOPFgRgXHSGUr/tIWhTL9IA/3+QmmcWNmUvdyQ+uuVsNxmGWp7fNBCc++x3N tNZlRBbKufo+RULf9G9xBcVB+WFmVWwkeiRMsX/h6y3VbFoX9Ex7XO5AjciE9nytajtF fXf3caHNpEkM/NwsSWAyynYPs/XOVDIfykRwpC8s9upc+GJQDoRr//RizLP+QYEM78pi mmNw== X-Gm-Message-State: ACgBeo0yU60fKF7cnAk0FFseYaZ8kKwXeHhh+F1kmDkrMclKt6JgM56U MpIqxkK43aFhgOy/E4u+rdfIOfIBk6A= X-Google-Smtp-Source: AA6agR7D0xewXUdG5kIm4PuFMEEVVv2NSNgr2SG9/eYbhFG7lKCNCoABm2Cp4M79hzf/Lnr1UrLByA== X-Received: by 2002:a17:902:da8a:b0:174:d3a4:2e41 with SMTP id j10-20020a170902da8a00b00174d3a42e41mr16564593plx.43.1662005625238; Wed, 31 Aug 2022 21:13:45 -0700 (PDT) Received: from localhost ([150.107.26.19]) by smtp.gmail.com with ESMTPSA id l6-20020a170903120600b0016d295888e3sm12789701plh.241.2022.08.31.21.13.43 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 31 Aug 2022 21:13:44 -0700 (PDT) User-agent: mu4e 1.8.9; emacs 29.0.50 From: Payas Relekar To: emacs-orgmode@gnu.org Subject: Re: Support for tagging (special) blocks Date: Thu, 01 Sep 2022 09:43:02 +0530 Message-ID: <8735dbbuku.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=2607:f8b0:4864:20::1034; envelope-from=relekarpayas@gmail.com; helo=mail-pj1-x1034.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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_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=1662005662; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=+CBZsub3uQ0609djCncVDdf0Ui2811oTqmW0nILCOvo=; b=E1KFwM1+cKNWnIhNnfi1tJKASI6fnR+SnNjD2aC25K/rlSpiZeE7K4GW6Y+a35TvZbG242 u3QBBjgsqWdfNCGkne9kL1kuaeXyND2J0SVHKTzavlVgpUkbeR6+RjkRI3ropxpSAII+HI 1K3TrzAl6t65noHfjb3mCq78vE33WcmtZL9m30Mh3TDVwyxrtajfIIgDbe9b2RzffntEWa 69EnUHYeYRnbwGpgsgMN/iTe2j8zJaFL3V+7kRz5lUURsKzuHdgpjDhlAmQxunEXGO6nXW vg05VIJuIYD7/0a02ADPSZP5hpVc/IMWgeg9W08zPCv6ulz/UN6w8mGgzuSLAQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1662005662; a=rsa-sha256; cv=none; b=c+LrFwTX6ZFq/1lRU7CjEDQA/0rk2/h8v9ufvsa3dkEyHzyni6KotiQhroKatNTclPeXR9 5nlqy8+kFz7pfMDj/H04Yw5uaK4A6Wrg4LaxV19S1DZpocN7u8xr0Qju4t3ZI3H6PuO6uk q6twVbLxJopPmJXfTWeCoEJleZC5FL6Y52YXtZVk45d8nyI1bkCu8TpazNn1RHoV91dBVV zYCV3DolM04FvjWKif5aGyPzw4gyj9bO75y+DlfZg9S924yz1DhKsDMwOovJzcWCbpMOtF mJmPi7o+Q7vCTgYoMNgJact5wjnIDnMSiOMc3akrw8rNurvS3Bt6/Jhl2D4ZOQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=bEKTdmPX; 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: -7.08 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=bEKTdmPX; 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: E74AB3619F X-Spam-Score: -7.08 X-Migadu-Scanner: scn0.migadu.com X-TUID: ad7pdWHl19y5 Kaushal Modi writes: Tags are bit more generic though, and allow searching across not just code blocks, but TODOs as well. Thanks, Payas > On Wed, Aug 31, 2022 at 4:19 PM S=C3=A9bastien Miquel > wrote: > >> Hi, >> >> I've been using tags on special blocks, src blocks and other, for two >> purposes: >> >> 1. to control which blocks get exported, using the `#+exclude_tags` >> property. >> 2. to fine tune the export, according to tags, of special blocks such = as >> #+BEGIN_exercice :hard: >> =E2=80=A6 >> #+END_exercice >> >> Does anyone think this is useful and might warrant adding support for ? >> > > I think that using the #+header: property for something like this might be > more canonical. > https://orgmode.org/manual/Using-Header-Arguments.html > > Example: > > =3D=3D=3D=3D=3D > > #+header: :tags noexport > #+begin_foo > > .. > #+end_foo > =3D=3D=3D=3D=3D > > or > > =3D=3D=3D=3D=3D > > #+header: :tags hard > #+begin_foo > > .. > #+end_foo > =3D=3D=3D=3D=3D > > It's also relatively easy to parse these headers: > > =3D=3D=3D=3D=3D > (org-babel-parse-header-arguments (car (org-element-property :header > special-block))) > =3D=3D=3D=3D=3D > --