From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:8:6d80::]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id gMFACq0NiWDvUgAAgWs5BA (envelope-from ) for ; Wed, 28 Apr 2021 09:24:29 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id YNPLBa0NiWDZVQAAB5/wlQ (envelope-from ) for ; Wed, 28 Apr 2021 07:24:29 +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 8FE8D22E24 for ; Wed, 28 Apr 2021 09:24:28 +0200 (CEST) Received: from localhost ([::1]:33150 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lbeYd-0006vD-Aw for larch@yhetil.org; Wed, 28 Apr 2021 03:24:27 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:44318) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lbeXo-0006v6-8e for emacs-orgmode@gnu.org; Wed, 28 Apr 2021 03:23:36 -0400 Received: from mail-pl1-x62c.google.com ([2607:f8b0:4864:20::62c]:42669) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lbeXm-0001ea-MG for emacs-orgmode@gnu.org; Wed, 28 Apr 2021 03:23:36 -0400 Received: by mail-pl1-x62c.google.com with SMTP id v13so18709682ple.9 for ; Wed, 28 Apr 2021 00:23:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=references:user-agent:from:to:subject:in-reply-to:message-id:date :mime-version; bh=826H5d0TXFzyBUNjpK4Hw83m8k2Y9hdJzgmFDYZukMY=; b=KksIie5XbQuUwNmNJj6nCEqqeAwteceAdlp6yTOQrwxFo61VNzv/xTU6kxhY2cbAe9 b/gHIPDifw7H3OGYYwn4VXxXjM2kkeGeiYdoAwPopcZ0gfgRsUU9wEB5XO77pafMBa+Q kiIZrcEb6ocNgLfg6YY2djsnpOs3pH5z5nnxUx53S61ZUwa1Rxtj03Zx2Eyf+WJKDKJz 5C81bo78spR6ACYQGW6DygsRDcLmimzdu5bxH5rqp2odNKflHkUKIiKFR0u0Wu7O8DJX 1ziHRRJwJumZWFI/8xQq/FiZEI1al1n4Vj0T5Oh9m9XOCFhXUdbC41bjRDCIwb/hK1Ke w4mg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:references:user-agent:from:to:subject :in-reply-to:message-id:date:mime-version; bh=826H5d0TXFzyBUNjpK4Hw83m8k2Y9hdJzgmFDYZukMY=; b=oiJV6q//R7PJ5Yq1tdcJSvo/idcP4G52uzAiwHLHOtsNIgEwVQBt8MXMOxAu+gLlfj 9SJP6QvbqWEy9D4+m0Xa5Q+LSyBWGRidsUQJPO0y0g/pwY9ITQ4bzL/2T+n+etNaaR5B NDv6yPqscuUYzlJDYpyohNL4oXAoNTtobRt9/UerQAH5SXGk5XQwoc7foIK0TcmLcdSc 1tJcqde6fjJYBb5QL3KdXRKBCWC2faqDYh0KyaSEaraVUhzxCBXfVos8P8JxjUeQOdVH /BQYZkUzXZyWWMJBR2xUMXQst5pSdL6ElclLD+22vzHi/6lUpBdp9Y1NLmi72sVADl0L O8BQ== X-Gm-Message-State: AOAM531YSpWbwNkNNvhtRYBObdO3Y4XeBDItxugnAxGX5z0Ow9rDBYpR yiMXkHeeTrJUhqPSpuPYVLe6Ad/FspY= X-Google-Smtp-Source: ABdhPJy7FQ/Tf56HLiDZ367MH5J1BdwPsp9Qo0qEBr1eWOGVPckclInBTJbTyNgR/mxtDYPhkvBUhg== X-Received: by 2002:a17:902:7203:b029:e6:a8b1:8d37 with SMTP id ba3-20020a1709027203b02900e6a8b18d37mr28587236plb.44.1619594613044; Wed, 28 Apr 2021 00:23:33 -0700 (PDT) Received: from localhost (180-150-91-8.b4965b.per.nbn.aussiebb.net. [180.150.91.8]) by smtp.gmail.com with ESMTPSA id y3sm3841616pjr.40.2021.04.28.00.23.32 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 28 Apr 2021 00:23:32 -0700 (PDT) References: <87im57fh8j.fsf@gmail.com> User-agent: mu4e 1.4.15; emacs 28.0.50 From: Timothy To: org-mode-email Subject: Re: [PATCH] Add font-lock rule for inline export snippets In-reply-to: <87im57fh8j.fsf@gmail.com> Message-ID: <87mtti50um.fsf@gmail.com> Date: Wed, 28 Apr 2021 15:23:29 +0800 MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2607:f8b0:4864:20::62c; envelope-from=tecosaur@gmail.com; helo=mail-pl1-x62c.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: , 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=1619594668; 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:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=826H5d0TXFzyBUNjpK4Hw83m8k2Y9hdJzgmFDYZukMY=; b=Rl5LwRnkjwEp7MJtv25+eA7M2NFMv6u5Vzet919KqzcEsey2+WozYxvmWPRBdzVE5ehfWI XDjE1aPVxop58RfvofwoYU1ANjgToQrrh9elF3TfnOHi4+ZyahWGkwSfcHCnUhmheqUbpM P1FZ1NFlM3QiCQTDtc1Lm7yaj8BFcTMXpwYfcsJ5vB+34mZWGVcoyfx/dfFuAh9RaLBKjN Eeam/2JqaSX6HRvKwMJB4gfdki4eyZcGj9n7XGiWjS7eHQWRqHIOJMWo4vrrl9fVICURzI pof41wn9WQhaJaR7kBjYFw8DvroErtHCo2zAj+rfEhFeDBsnH0hoXkQWdK2xfA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1619594668; a=rsa-sha256; cv=none; b=QsS9hmkCbYbvZb9vWMgmje0C/ix4rkHahBKs6c3LhopO7Uv+jLOSGqLd284nCa4VUaEl/6 dRcn7ymgXsCY4rHSdV7+i06+uYY/PiZXZcjhMbMEhU14nK0FceIJzxX3XV1Wtec9xCgWYJ qXcwmL1f9vF8WlZYCpiLKcZZP4KDiNaOkkVDbmOwHDkx9rlI5FkXN3x0+zMOCzZtqgEQ1t hckXoe04gWB35f9NivPXEu/FLuktCjzzqOcnc4UCYi8K0BjJcRrOWBxW6ulqyK2cXOO8q1 UqWGZ5VSZVJIXtnIgudQhobpCufwnkxW1ih8lEqkoKjW0LxAHpStyWMUqRksdA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20161025 header.b=KksIie5X; dmarc=pass (policy=none) header.from=gmail.com; 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: -3.15 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20161025 header.b=KksIie5X; dmarc=pass (policy=none) header.from=gmail.com; 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: 8FE8D22E24 X-Spam-Score: -3.15 X-Migadu-Scanner: scn0.migadu.com X-TUID: mz98A2LNj/zV Timothy writes: > Hello, > > The latest in my visually-oriented (mostly) short patch series, adding > basic fontification to inline export snippets --- @@comment:these things@@. > > I think fontification for stuff like this is nice because it visually > indicates to the user that they've written out an Org construct, and > haven't just mis-remembered / imagined some syntax. > > In future this could be extended to use native fontification for > recognised export formats (like src blocks do), but I think this is a > nice improvement over nothing. This addition to the font-lock regexps is quite simple, and doesn't contain anything fancy/expensive (like backtracking), so I don't expect there to be any performance concerns --- but it would be good to hear from others :) I considered limiting this to no-newlines, but https://orgmode.org/worg/dev/org-syntax.html says anything other than @@ is allowed. -- Timothy