From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id aHaGBMiXi2dBQQAAqHPOHw:P1 (envelope-from ) for ; Sat, 18 Jan 2025 12:00:08 +0000 Received: from aspmx1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0.migadu.com with LMTPS id aHaGBMiXi2dBQQAAqHPOHw (envelope-from ) for ; Sat, 18 Jan 2025 13:00:08 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=F4PjJpVD; 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"; dmarc=pass (policy=none) header.from=gmail.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1737201608; 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=x20zoKiswTk3u5DrpXMSohqSOkuswkVL/H1QZKMM4+c=; b=QY5jHaS5fbfIXE5VpR9agbLs/KrODpHCbr/sBeDDK1zm5EDbJtq2dt/lsBw3j5cD4PiTJf Icn9JjzOiCdF4Ax+fT3xTGGkZbILtRVoZkxd/hNs1z2Q3liD2nnWDJY8Xnfz3Sl2wMSiIn gZgFBzLpcuzaK5CHfZIvmO/ifwW2vrkqhLKaFq2+JS+nZfJWFa4k+aV4u8lm9rhYGhk6Xz K2iL9w1op2XN0YdHAUpLIjnxDSfxZ2xDawwSLHHf7nkLx+qjkiBMa8pixk48yb8o8W9339 BxcEbGhHcBpTBXAz/232lIzhrx5mXDUIzauLsYaQAYCSBuDnFXqXB8fj1vNZ/A== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=F4PjJpVD; 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"; dmarc=pass (policy=none) header.from=gmail.com ARC-Seal: i=1; s=key1; d=yhetil.org; t=1737201608; a=rsa-sha256; cv=none; b=GNeFhbD3Z0W5wmC50ZVIXpxghwGSv2ZCRUOy1Ikq2IRJhk21Ry72uhfweyMx9wQnzFVrZb 8gTs3O8kl9wRmdJA1guie5y70F7f8YybJN7/o6bl9vaFqKlRwwqCqu8el9KbOP9szFz5eV VJ/kJ9hirAYHq6TUnG/jbLbAQuEZuPX3Giy3sarh9nslxvbiuuVQPm19mfQBI+5D/cU28f dQOo9dTri8FNPQV7zF2RsxxAEEZBWHcfsqr1bjXOFzoMso7agzd9CGLd/gQWzFTdKbM9H0 AXt2e7ToTz61EgPecKBOzh+SP9v/lpljgd5h3vpxp+Gpt5SYk9Q1WeplrYaXkg== 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 C342A7FB66 for ; Sat, 18 Jan 2025 13:00:07 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tZ7UH-0000jv-KT; Sat, 18 Jan 2025 06:59:37 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tZ7UF-0000ja-LV for emacs-orgmode@gnu.org; Sat, 18 Jan 2025 06:59:35 -0500 Received: from mail-vk1-xa36.google.com ([2607:f8b0:4864:20::a36]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tZ7UE-0005y4-1r for emacs-orgmode@gnu.org; Sat, 18 Jan 2025 06:59:35 -0500 Received: by mail-vk1-xa36.google.com with SMTP id 71dfb90a1353d-51c8460328dso783078e0c.3 for ; Sat, 18 Jan 2025 03:59:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1737201572; x=1737806372; darn=gnu.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=x20zoKiswTk3u5DrpXMSohqSOkuswkVL/H1QZKMM4+c=; b=F4PjJpVDfhpC4R7IPmVbA4h+oG+5sPnC5AncNBfsGp2BCvzouwWYCxSvuFKHBco03r MSP9fEAcIJHN/ce163rdsyJxWkE03afB8cP6uQrbx+Dr+EUU2PjAIhtMe95XCFmTAzdz kaG7kg7bFpgQmVZd7NFVkFi/rewi9QRzPmTsJgPabezjNZh3kaIsggJirUFHV4MgQqkE W3S3jOntLkp5IEYIVKMevkHxYBT+6/zt6Xms46EKyjQBMRHtTD4XpLZHvhnxO/geEUlD 1Nit/BlIU9cCu7LO75GFuTBUkBYvp+GPUzH7q2lhxG8RsGwbOdIug4LIGW43786dGRmH uyAw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1737201572; x=1737806372; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=x20zoKiswTk3u5DrpXMSohqSOkuswkVL/H1QZKMM4+c=; b=tUh5rJqcKzmcrTPzyJVFFEWC2D13BJl4OXFb33Z7JpMJAuPiiYndPNJaJEQWNJr2XL schx52p0UfLvJgs2RbjGTy/nCmUyGxgoW79AECBSwicsZ5Ohzo9SG7Ulq2z9Re2BQZmb yXeuCLD4iBP8GeYfnZcjA76sqDg5koWhTddrzBIkkWVBGZdMYFPEHIoVDaZIiRCgE6NR qZWrDekpBeNBh6HxhXefxTezUhrGFL3hIp0hIGDjK6umoiVPah7qFn/pjsZb9kqYwVAJ sqi7TXVKU8Tyc9lYNAyt/KjjeNSXAdHZE+TDbG9XqzSti3bcgMBIWDLNejacYk+hhxBe EZOw== X-Gm-Message-State: AOJu0Yz7cOd5ZeNS9ieRV4xBatBXG33leanyDmlCTW8YFcCABqK2Y3G6 TjPD+7ywZ3v/87+y7rp4WcchWafv/1GIqwNC1cqVzMoXztF8lwG7E4RMXhAVYFkJ9XOmlf3a1wo +GKuJEFusSmJbvjhMQUWEfZlj97+csQ== X-Gm-Gg: ASbGncu4FvwSk1ezofEsoO1M5/oWe2RLqPpKxKayXqDU6Ly6riqhjQbZDMDmLLD4Z/R pKXwbLzFdCKPZrMfcY5oRJSbhm0VkGL7WVZAlczERGY8qdXFJA/U= X-Google-Smtp-Source: AGHT+IEp2bKCgBZx0opjUdeCvJJAYhUeMikXKb+nPPqSVnnYqWG8Muc7pTPghKWqYtltrJJUUKoVKFJdhIMygfho9ZM= X-Received: by 2002:a05:6122:8286:b0:518:778b:70a1 with SMTP id 71dfb90a1353d-51d5b2f094dmr4969819e0c.7.1737201572586; Sat, 18 Jan 2025 03:59:32 -0800 (PST) MIME-Version: 1.0 References: <87sepgr34g.fsf@localhost> <87plkkqsgp.fsf@localhost> <87msfoqrmg.fsf@localhost> In-Reply-To: From: Ship Mints Date: Sat, 18 Jan 2025 06:57:58 -0500 X-Gm-Features: AbW1kvYkiLcFBpLePPiz0XdJ8JTzGv2D7B-MqEMTrCqjjfZt0GYjBD1OcEu8KEU Message-ID: Subject: Re: Add org-src-is-fontify-buffer-p (patch attached) To: Ihor Radchenko Cc: emacs-orgmode@gnu.org Content-Type: multipart/alternative; boundary="000000000000a32cc0062bf9c27f" Received-SPF: pass client-ip=2607:f8b0:4864:20::a36; envelope-from=shipmints@gmail.com; helo=mail-vk1-xa36.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, HTML_MESSAGE=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-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN X-Migadu-Queue-Id: C342A7FB66 X-Migadu-Scanner: mx13.migadu.com X-Migadu-Spam-Score: -1.33 X-Spam-Score: -1.33 X-TUID: VVr/6xEZcXQa --000000000000a32cc0062bf9c27f Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable This could be added to the org-mode documentation as a hint for those who use native fontification. Should I send a patch for that or trivial enough you'd do it, if you agree? On Sat, Jan 18, 2025 at 6:54=E2=80=AFAM Ship Mints wr= ote: > For the record, this is what I've recommended and what I will use: > > (defun my/XXX-mode-hook () > (when (or buffer-file-name > (not (string-prefix-p " " (buffer-name)))) > ;; do something expensive > )) > > On Sat, Jan 18, 2025 at 6:36=E2=80=AFAM Ihor Radchenko > wrote: > >> Ship Mints writes: >> >> > Yes, could do, and nothing needed by org-mode or markdown-mode. Could >> also >> > test for buffer-file-name nil. Or test both. Let's recommend that >> simpler >> > approach and I will rescind my markdown PR in favor of this simpler >> > suggestion. >> >> Well. Org or markdown should name the buffers according to the >> convention :) Org does it though. So, we should be good. >> >> Closing the patch request. >> Canceled. >> >> -- >> Ihor Radchenko // yantar92, >> Org mode maintainer, >> Learn more about Org mode at . >> Support Org development at , >> or support my work at >> > --000000000000a32cc0062bf9c27f Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
This could be added to the org-mode documentation as a hint for those wh= o use native fontification. Should I send a patch for that or trivial enoug= h you'd do it, if you agree?

On Sat, Jan 18,= 2025 at 6:54=E2=80=AFAM Ship Mints <shipmints@gmail.com> wrote:
For the record, this is what I've recommende= d and what I will use:

=C2=A0 (defun my/XXX-mode-hook ()
=C2=A0 =C2=A0 (when (or buffer-file-= name
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 (not (string-prefi= x-p " " (buffer-name))))
=C2=A0 =C2=A0 =C2=A0 ;; do something = expensive
=C2=A0 =C2=A0 =C2=A0 ))

On Sat, Jan 18, 2025 at 6:36= =E2=80=AFAM Ihor Radchenko <yantar92@posteo.net> wrote:
Ship Mints <shipmints@gmail.com> writes:

> Yes, could do, and nothing needed by org-mode or markdown-mode. Could = also
> test for buffer-file-name nil. Or test both. Let's recommend that = simpler
> approach and I will rescind my markdown PR in favor of this simpler > suggestion.

Well. Org or markdown should name the buffers according to the
convention :) Org does it though. So, we should be good.

Closing the patch request.
Canceled.

--
Ihor Radchenko // yantar92,
Org mode maintainer,
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>
--000000000000a32cc0062bf9c27f--