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 KGw2MKE3PWMNeAEAbAwnHQ (envelope-from ) for ; Wed, 05 Oct 2022 09:52:01 +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 4JJwMKE3PWPWBQAA9RJhRA (envelope-from ) for ; Wed, 05 Oct 2022 09:52:01 +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 6A1AB23D73 for ; Wed, 5 Oct 2022 09:52:01 +0200 (CEST) Received: from localhost ([::1]:33512 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ofzCC-0007Rr-Gx for larch@yhetil.org; Wed, 05 Oct 2022 03:52:00 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:33274) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ofz9S-0007P9-8Y for emacs-orgmode@gnu.org; Wed, 05 Oct 2022 03:49:11 -0400 Received: from mail-pj1-x102a.google.com ([2607:f8b0:4864:20::102a]:43679) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ofz9J-0005nc-26 for emacs-orgmode@gnu.org; Wed, 05 Oct 2022 03:49:09 -0400 Received: by mail-pj1-x102a.google.com with SMTP id g1-20020a17090a708100b00203c1c66ae3so1038550pjk.2 for ; Wed, 05 Oct 2022 00:49:00 -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:references :in-reply-to:subject:cc:to:from:from:to:cc:subject:date; bh=FY1Rtw79KQ+eo7UAftGXpsHdfWSQ+t742yPqyotTRDA=; b=gz5R5kbtR0sIRyVAvwVQdDKRYk+f59KwRVPguJHVALo6IlEDx9Tbq7bruIjvetA7EM y5tD2PKrz1fX2EBLwbWBVmaQgW6RaQd3oqQbrXTE9jItVnNhophiX8cUrwkUi61ye5Gs z2WkEKpmJoi1qH0yWuMjsmnhb0YQwLktf0kuLsyz2pkvT5+njT2V1YwjGQ+R7cmRF3B1 gXyqzornisfMgFMby2cSQ6xtZWGIozVdlapf3ad2uQHL20/XK2c5CAPmKMGnWez6ydzR VagKVyKnwu0FCpf0bxvIw2tFjBtk1EQbX05hWk93hM4Ee0hFrtiR23FqosUxzEs+8nSm lsKg== 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:references :in-reply-to:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date; bh=FY1Rtw79KQ+eo7UAftGXpsHdfWSQ+t742yPqyotTRDA=; b=7wBud/rzOo0+6UAetJr8KrWn0NLyNHUygVgXwQ4GVK9clCHqaDHV8kWcGwjd2xxtUY LW0zqCnEf4IghncqUakTjiE9IxeR6xS7jYfTUyCWlP+crERik5LiqKAfXTdW8/BGGkcr LbZ5/1shH+BDyKp8MhVkND6HaIitlAzqF2pbuR2Vy2f5ECLrkRIU8Wi1J8KRYeJR280x 8tAZmqMr7M6roGnN/6jBYqUQB69UbxNSpkC5CpyOSRGz1ZoBGQxMHzHN5dB1jwjocQ4t ZhWTwl5QnpNd3eyGEnOzQsCiREOCwLaN64sAZqpnf0myghKWB9rqClV536zruCW0hUoz 1kyg== X-Gm-Message-State: ACrzQf31At7Bus/oG2k7rkuf2KiIF6mN+/N4Tlc/RnXx6Ue2p5jWl/m5 rNhr4TDuVRd1rHc5u121+k5L21YYY8NZIQ== X-Google-Smtp-Source: AMsMyM68u6cib0g8/6t2at+mBb21MRmJPBad4/3ZB+nX/zcGWlMPkCehlzGV7M0SRK3rEZQ24ry1lA== X-Received: by 2002:a17:903:246:b0:179:b6d0:f8fd with SMTP id j6-20020a170903024600b00179b6d0f8fdmr31090422plh.124.1664956139064; Wed, 05 Oct 2022 00:48:59 -0700 (PDT) Received: from localhost ([2409:8970:af2:32f:8ec6:81ff:fe70:339d]) by smtp.gmail.com with ESMTPSA id f13-20020a170902ab8d00b001782aab6318sm10019744plr.68.2022.10.05.00.48.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 05 Oct 2022 00:48:58 -0700 (PDT) From: Ihor Radchenko To: sebastien.miquel@posteo.eu Cc: emacs-orgmode Subject: Re: Support for tagging (special) blocks In-Reply-To: <81dba0dd-ed05-21d3-a827-acf938af1de4@posteo.eu> References: <8735dbbuku.fsf@gmail.com> <87ler3oc4u.fsf@localhost> <30d5a0be-4651-3f41-8b53-91acd4a86ca5@posteo.eu> <87a67hncp7.fsf@localhost> <8f79980b-e903-c68a-cf07-6c5265215ee4@posteo.eu> <87ler097ey.fsf@localhost> <1cee88b1-00f6-44ff-be26-b43ece0c3e8b@posteo.eu> <8735d768ov.fsf@localhost> <81dba0dd-ed05-21d3-a827-acf938af1de4@posteo.eu> Date: Wed, 05 Oct 2022 15:49:50 +0800 Message-ID: <87v8oy90bl.fsf@localhost> 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::102a; envelope-from=yantar92@gmail.com; helo=mail-pj1-x102a.google.com X-Spam_score_int: -17 X-Spam_score: -1.8 X-Spam_bar: - X-Spam_report: (-1.8 / 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 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-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1664956321; 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=FY1Rtw79KQ+eo7UAftGXpsHdfWSQ+t742yPqyotTRDA=; b=aiXsi5o1Xy50fObw15DkoKjd1pYDnLIA4vQarv2H3Lh1m06RwIPzAm8QdTJpS4MXP4RRQG d0SRNge97Fjv8KEdQ/rkcGgqYyHmHjf8/2/dUPHo0LNR/sKFPWlmVL06d7vIhS8s563xR7 Js02EmTdcLAGZEOU8vLxfl2LS40GMEC3bZftgi0j/urhYEEYm4Na21NnDJ/JYN2ZDVg8h9 PUiYWQWWzLBYC29vYUrWSYUryCxiYEz7kt5CcXR2m8DfKvfCUikUJMhRQe1l35Gw3gD297 p5GUbhDIz0lnvNnyGsr/HRWc4SM2LvMPW6xvP0CRanlEs1+zmAoSAwHe2Pl9mA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1664956321; a=rsa-sha256; cv=none; b=ROJVjnp/siI1FEpK2LraFgrO1skeoT9/1qhplICVkF9sX+OZ/p10gKJgu1paJOwDETS6xL vTKqf86p7bwK04ecC2OcVWyVgS8wycqFKzDGPuoC7zBQFwWYm1BuY6Vupvi/MyZjGk1sPq twn+jw+S2FEzPw3a/ys6dmQzuOVBw12AKNVp5Hb4tW43qbqCHeFlQzrlR4ILGAoHZlYz1I A13w7nVOix+xkUZCp+mNvvO8of1sYqMBZDMyjR67XJUC5xuw42k4f36Dqtp4OgNgVmb1e4 dh1d5bEx1tZeihyTuToAvNsZLY4jK4TEEQzghO5AUYi+ub743W7Z6NeG9iq6KA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=gz5R5kbt; 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: -1.86 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=gz5R5kbt; 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: 6A1AB23D73 X-Spam-Score: -1.86 X-Migadu-Scanner: scn1.migadu.com X-TUID: AXSDm4aC4uuK S=C3=A9bastien Miquel writes: > Hi, > > Ihor Radchenko writes: >> Thanks for the clarification! >> I did not mean to reduce the font size in affiliated keywords. >> I was referring to replacing the display of affiliated keywords: >> >> #+name: A classic >> #+tag: easy >> >> will be displayed by Emacs as >> >> #+... A classic :easy: >> >> The underlying text will not be changed. >> The hidden parts will be revealed upon cursor entering the affiliated >> keywords. > > Perhaps something like > #+... name: A classic tag: easy > might be used for any kind of keyword. That'd be quite the trick. > It would certainly improve the situation when an element has several > keywords, but I'm not sure how common that is. > > I'll look into implementing such #+name and #+tag keywords, when I > have the time. Escaping might be an issue. Another approach could be following out headline format #+name: Title :tag1:tag2: In any case, I am not too concerned about the semantics at this point. In order to implement tag support in named blocks, you will need to add it to many places in Org, like parser, export, babel, user commands, etc. It is not trivial. And do not forget about backwards compatibility and, for example, third-party export backends. > On an unrelated note, how is your work on revamping org's > fontification going, if I may ask ? I had had a look at your repo, but > since adapting my configuration would have required some effort I did > not try it. The latest progress is a bit of discussion on parser-based font-lock keywords in emacs-devel. See https://yhetil.org/emacs-devel/87wn9srn9n.fsf@localhost/ The code status still requires some decisions to be made about code design of the parser. In particular, the current (albeit working) implementation will make it difficult to apply arbitrary fontification order for parent/child elements. Like in https://orgmode.org/list/m2mtdp2cwo.fsf@ntnu.no And I need to write tests, add faces to all possible elements/objects, and re-factor the code into shorter function. I have not had much time to work in these lately because of the upcoming Org release. --=20 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