From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id WFO/KzB5WWGOLAAAgWs5BA (envelope-from ) for ; Sun, 03 Oct 2021 11:34:40 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id SJxxJzB5WWF5WAAAB5/wlQ (envelope-from ) for ; Sun, 03 Oct 2021 09:34:40 +0000 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 5C376BDFC for ; Sun, 3 Oct 2021 11:34:40 +0200 (CEST) Received: from localhost ([::1]:56480 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mWxtG-0004oG-SP for larch@yhetil.org; Sun, 03 Oct 2021 05:34:38 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:49132) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mWxrM-0004o4-Cl for emacs-orgmode@gnu.org; Sun, 03 Oct 2021 05:32:40 -0400 Received: from mail-pf1-x42e.google.com ([2607:f8b0:4864:20::42e]:35696) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mWxrK-0006Fp-Cx for emacs-orgmode@gnu.org; Sun, 03 Oct 2021 05:32:39 -0400 Received: by mail-pf1-x42e.google.com with SMTP id c29so1526795pfp.2 for ; Sun, 03 Oct 2021 02:32:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:references:user-agent:in-reply-to :message-id:mime-version; bh=3TyJ3UMeeDRhJbKItzj58j1K5mDxOAxyikwAzLy9Eag=; b=LW27skXGKiw9Fg7Nzwt5PzAnIvnez8Yohcx+WCO3JZuV5H9Q98jeTRmkvW+rSSy3TF em2HjqDzX+CS83c4zCjr0voJG+hPBPUS66QdJgjjswnuoPsSpaGaM4hTLRZbnwyOePvr 550Kh8LHI6H1+fEBTDVXnFxjLWF3L+GrUx3zBBL+66rjitcQWZdWuyEsVS1uJd7SnS2Y 0TZ5YIBILaShGHVkz/I2FzRfwhcDECoZKQ5L9L7+vzf8ofcy9l8qlzyXXEZbNPVVx9vW ob3tCJJPlgQHP/P31Huo6IJ3l/o7s81cAdjy+AQyFCMiB26UdeoTFHPe8jGuoZsWGFWT LA0g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:references:user-agent :in-reply-to:message-id:mime-version; bh=3TyJ3UMeeDRhJbKItzj58j1K5mDxOAxyikwAzLy9Eag=; b=vcc3KlRoRzE5LeexVsUFYe+HF639L+bRDpDdMNxaypibWIbmC+dgpbh5cZ0XccM917 hKg1DCHN1n2TrmjG8QdPC9lexuEynkcS4QW8SISKxW+1YQdNZT8LEpCw7Yojs/iXLjUb jkeDxnOanWhrgFHf/Dy/YvD+VX5p9UkWgppxZXD1gBDr+jyquEnMcQcd0puHtIXfDtTH +qV2dIs1kPuYY9a+76uyXR9YjvcdUhlBc7ZmwQwERPRv2N8r3BYdaPEnXVTEJFwliSwc aGCB1y9tcXuAOTTAYPmJO5gsfIZu723uaK0IMbA9rjVNVbnMvdJx4h6P5IcQzDgRDiZf Tjig== X-Gm-Message-State: AOAM530AePBIQt+apnBKCTWSkiA307pJoSjqIIZH3zJQZ4WbdHufTYDo p/1zEjd6HL2e9uB88wcaHjn/wf1tQ/0= X-Google-Smtp-Source: ABdhPJzp/Cs9hKejhx2Pg1HOkjtUn6ZBKvdW000DvlOmt7k84MJsXQgzubOfnoAMRRSkAQiQPYgbdw== X-Received: by 2002:aa7:9596:0:b0:43e:48:dbeb with SMTP id z22-20020aa79596000000b0043e0048dbebmr18628619pfj.77.1633253555901; Sun, 03 Oct 2021 02:32:35 -0700 (PDT) Received: from localhost (61-245-128-160.3df580.per.nbn.aussiebb.net. [61.245.128.160]) by smtp.gmail.com with ESMTPSA id s4sm10763696pfw.182.2021.10.03.02.32.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 03 Oct 2021 02:32:35 -0700 (PDT) From: Timothy To: Ihor Radchenko Subject: Re: [PATCH] Fontification for inline src blocks Date: Sun, 03 Oct 2021 17:22:28 +0800 References: <87pmzf4bd0.fsf@gmail.com> <87h7dy7f68.fsf@localhost> <877deuinmn.fsf@gmail.com> <87r1d25vbl.fsf@localhost> User-agent: mu4e 1.6.5; emacs 28.0.50 In-reply-to: <87r1d25vbl.fsf@localhost> Message-ID: <8735piihcf.fsf@gmail.com> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Received-SPF: pass client-ip=2607:f8b0:4864:20::42e; envelope-from=tecosaur@gmail.com; helo=mail-pf1-x42e.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 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Protesilaos Stavrou , org-mode-email Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1633253680; 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=3TyJ3UMeeDRhJbKItzj58j1K5mDxOAxyikwAzLy9Eag=; b=Rgv5IxKyhzHQtVYSvXJCpv8X7VL/VQ/qyiJStdIkcoMGf9lcJEmP5C9yFL6s/hqBttJTmv 6E7JGw4SKM9Q6eofWRHPamR/zAt8PT/8wkm0MvJ0ruyPBMYzb4qT+yq5nEJUwZDH1nKPjq DsVPoVi1VN8DSvYCLumyU06PVBgpv+AduG+z0ymPzErgaFaZEKI8QShOunruHsedW5kt1q 4+fIkjgPw275RninDsqcwrpE1heZpSZKnRd/6DKiddFXQ2nSheOU55dbAPeCToZOfZ46SQ AgNZ8TY3Tr32vLcSEPjUwMfNzQmb1XecUa+o8l1pvSwIYWr48GheImH5bQERMw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1633253680; a=rsa-sha256; cv=none; b=sdO6Rdd1HzpAjYQQQc1NAQf00pISLDOrCRbHXkGeUbqWsvOEaimSyzq8IxbK2F7RbRmBRF 6tEYtIUpI9hf1HVRd3B+9QlPZx3td1J8qI+dn7mKb/6XVmOlxkPCb1eWVjpM1goNJbTdpU 4JU26hotX4T4e6zdINpqRHfYnIUJnDpCd5Jn2n9XMDlLZb0Ox8LI75GdA7Rj0Dz3L1+K4W NIN49oz9XlgvjFVPElJjRa21pUjWH8GF/C1aLziNiHDnJH3NlhnaqhjVwfEyUPSZtrsvn5 eTbFAagDMqtP7KkRabUFDkx3AfauQ3sY8o1r1hPuKWUS/xwuOAceBEi/KCR6LQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=LW27skXG; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Spam-Score: -0.71 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=LW27skXG; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Queue-Id: 5C376BDFC X-Spam-Score: -0.71 X-Migadu-Scanner: scn1.migadu.com X-TUID: Wxa5djZR9Ln9 --=-=-= Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi Ihor, > What about separating the src_{nil} fontification into separate patch? I > think that part raised no objections. That sounds like a good idea to me. We may as well get that in. > As for the results prettifications, I look at this and similar ideas as > at Emacs themes. It looks nice on your screenshot with your fonts and > colours, but may not be good for other people. Similar to org-bullets > and co. The behaviour makes me think of link prettification more than what Emacs th= emes do. Hiding the text {{{results( with an overlay seems like something a major/minor mode should be responsible for, not a theme. > I can see how some people (I am among those people) want to reduce the > markup noise beyond hiding emphasis markers. However, some people > prefer not to hide text in buffer under =E2=80=9Cbells and whistles=E2=80= =9D. Indeed, and it=E2=80=99s good to have this option. This is why I also intro= duced a new setting, `org-inline-src-prettify-results' (similarly named to `org-pretty-entities'). > Maybe we can create some kind of =E2=80=9Cprettify-symbol themes=E2=80=9D= replacing different > markup elements in bulk with nice symbols/svg (e.g. inline results, block > headers/footers, uninteresting property drawers aka org-custom-properties, > bullets, etc)? WDYT? Also, CCing Prot as it might be of interest for him. > Best, Ihor I think it could make sense for some prettification capabilities to be built into Org well. Currently there are a few little things we have, but it seem= s to be handled inconsistently and I think it could be nice to provide a more un= ified approach. There are also things like which I fe= el just make a lot of sense with Org (you never have to guess if `point' is before = or after a markup character). All the best, Timothy --=-=-=--