From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id 8GzbCNyQi2d1CgEA62LTzQ:P1 (envelope-from ) for ; Sat, 18 Jan 2025 11:30:36 +0000 Received: from aspmx1.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1.migadu.com with LMTPS id 8GzbCNyQi2d1CgEA62LTzQ (envelope-from ) for ; Sat, 18 Jan 2025 12:30:36 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=XyEbpucH; 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=1737199835; 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=uxRff6brP8FRbZ2z+xkL3/1yrT7OG+W2KIFZzoKn7QY=; b=m0DH0qFfdTV1D9feHM3TKoS81aI7LNhlSKvTioXxb56HFuF35UGC6i9vi8NOzzfFVBRn0Q vyQYDPxeTf8ET88zJv5zNsXAyI36gKMrEFq6pjggDr1WbySi7XUrnrx5EoZEo7F7pa3fUj 6ThU0rVlN7JSRNedaX+QmyHuYSeNjVRgwiHbH+595DZt4nBx6atpF2fMh0b3BDgQmQDuK7 pSuhP0AOALv8yJZzIhV5/NAxFYqLVkumFlbaEKGlu+wgT2bd6gvw6JaV9Ryn0/25yFbMWI WZywVr5re/M0UVayf69tluRWAUZPPDEUUH2BrVkF2kctwKao3pLHmKeZiyCuRw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=XyEbpucH; 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=1737199835; a=rsa-sha256; cv=none; b=gRUQ5OjBPzR8krxMCl5zadRWOZE3aMi6a1KL3j06hd0tmxn+fs8HtSniSu8M4YOBRqlWw0 qdslcyQhlR3VmYYU9akq9+Xbs/8NQKenmscFji1PGVvzk9agKv5JbCz0AMfYuger4aG29J 5u0RuFbw2N0o6ur+BJaWD2TpT/sUDj6kaK8zq8rbDU1Re+tyJHME4566ysLDtPdEEvRq5I sx4/FrJd9i9gRty5IUdTTCkH8I6OdktQ4Uk6Qdsd/M6n1FFgfUZZ4xJjqmVENhdHBx5nb7 0xq+aTpZdDF0Bo0Kikhx8qLhZm0u9QHkYhKmpKpDzseuDtC9s3mefoAy3KQI7Q== 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 97D5F1A3CE for ; Sat, 18 Jan 2025 12:30:35 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tZ71X-0001Kv-89; Sat, 18 Jan 2025 06:29:55 -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 1tZ71V-0001Kl-L1 for emacs-orgmode@gnu.org; Sat, 18 Jan 2025 06:29:53 -0500 Received: from mail-vk1-xa2d.google.com ([2607:f8b0:4864:20::a2d]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tZ71T-0002E6-RC for emacs-orgmode@gnu.org; Sat, 18 Jan 2025 06:29:53 -0500 Received: by mail-vk1-xa2d.google.com with SMTP id 71dfb90a1353d-517aea3ee2aso1759729e0c.2 for ; Sat, 18 Jan 2025 03:29:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1737199791; x=1737804591; 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=uxRff6brP8FRbZ2z+xkL3/1yrT7OG+W2KIFZzoKn7QY=; b=XyEbpucH5QM2C5VN0EzXffwvfYa1RdyO8KxL1IqFgxFny7ax9aS+allG0BRwkTw732 EqpwmiWCEmcHEyYOUlxVkXWvJgj1Dm9Qu6oTB3yU+8zbqujJoU8Z8sssXX95slzRDCVx Gd7cHe4CbhJO4/CJmD/38UZrgNUQhbtJp7asRFnP7VzjFA0kklBPXyFR3F1B0EUJRS2Z uBhV7X9jxwc8CTOkF5JmbZVJq4BaOLgiJGJUPrjedS2SVSnJLgjkRQbCt5Fq9LkUdMcy NOCC6kh91J7HggI0RvLBv2La1kW9UajWPEcEehtqtftWfiyWGtK0j9e6AvKxDmDgKgya dHFw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1737199791; x=1737804591; 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=uxRff6brP8FRbZ2z+xkL3/1yrT7OG+W2KIFZzoKn7QY=; b=e3lLJfWOGCtWMqZXpWM8ITN2hconm2N4QbnNxbw8fa9e2jh5ArQ3+nWnGLh5WzG4Z+ IiPXne9qx2PnwJL8K2ys/NBMojyRjqJhuSrFGA2GaScE74c32/KzClq4pC+NQtBDhSke 9qRVNUfgJmngd6FaoAUBZ04/Tfe3SSRvfdn7BOTWJFujnQ8GSMvU5YpnRS6Iu7/NZJe2 ylgZ2dtJ9+h4nD/fxOpuSFYQPdBSAnTmCSO0nwUvZ97IS2yLSXqESFcx87ag4O1TE3b5 0zGKDgNxLle0giIuWuIF4zvbZcr2qm5x0Rrhq+6ISpkxCpj3tqTRrIh/5b3b8+D3Z9Ii y0Kg== X-Gm-Message-State: AOJu0YxmIZqNlFlRxEGbB1/sJ/eexGK2NW3LXabhXoeAvHUgPEkOGtWP drd52mygfRrRI+SeqMd3TruNwVvYpirH3QYuJKD8quHRY7bpL0ahnX7Hb/E3avFSIDsdfzxwS8D euHPbxNRPP0HNGuShzmNaVp6FHovFIQ== X-Gm-Gg: ASbGncs4FpPmMz6a7H3rk+j5puAD1ZawkZ+OLzSjFxzNxrL6jExQluwL9E4NqaqOdR5 luxTOmy3Ku2kB01cFhq1yePlka2EeBhtRhb0hgR1dQIBZw8CfJPI= X-Google-Smtp-Source: AGHT+IE01iFyp5yA8bG5kPyXEMPcbJIMwfNBB9xTFeeOogOzizNC2GmHCgxgVxKpwpQ+lpv6rPjeVVq5xfm5HUrAhJs= X-Received: by 2002:a05:6122:4011:b0:515:d032:796b with SMTP id 71dfb90a1353d-51d5b39a9e2mr5375090e0c.11.1737199790630; Sat, 18 Jan 2025 03:29:50 -0800 (PST) MIME-Version: 1.0 References: <87sepgr34g.fsf@localhost> <87plkkqsgp.fsf@localhost> In-Reply-To: <87plkkqsgp.fsf@localhost> From: Ship Mints Date: Sat, 18 Jan 2025 06:28:16 -0500 X-Gm-Features: AbW1kvaW9euDPhcmlUsVJaay2Kx6X352AG5kOlKIBanPcKAb4GoYceDS_IIEHiQ 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="0000000000006cad3d062bf958c8" Received-SPF: pass client-ip=2607:f8b0:4864:20::a2d; envelope-from=shipmints@gmail.com; helo=mail-vk1-xa2d.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-Spam-Score: -8.50 X-Spam-Score: -8.50 X-Migadu-Queue-Id: 97D5F1A3CE X-Migadu-Scanner: mx10.migadu.com X-TUID: yD7M8YK7j8F1 --0000000000006cad3d062bf958c8 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 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. On Sat, Jan 18, 2025 at 6:18=E2=80=AFAM Ihor Radchenko wrote: > Ship Mints writes: > > > Eglot was the first request cited. For python programmers that rely on > per > > project/directory-local or per-buffer virtual environment set up, this > can > > be heavier than needed just for fontification. I enable eglot manually, > but > > I do use python virtual environments and would disable initialization i= n > > fontification buffers. > > Ok. Fair enough. > > > I'd prefer a more generic interface than propagating org internals like > the > > format of the fortification buffer name. It's what I submitted to the > > markdown repo also. The buffer name scheme can change in the future > without > > impacting this feature. > > From my point of view, the interface you suggest is not generic enough. > It only addresses a single use case - Org fontification. > > What about another, more general approach - check if buffer name starts > with space? By convention, buffers with names starting with space are > considered internal. > > -- > Ihor Radchenko // yantar92, > Org mode maintainer, > Learn more about Org mode at . > Support Org development at , > or support my work at > --0000000000006cad3d062bf958c8 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Yes, could=C2=A0do, and nothing needed by org-mode or markdown-mode. Cou= ld also test for buffer-file-name nil. Or test both. Let's recommend th= at simpler approach and I will rescind my markdown PR in favor of this simp= ler suggestion.

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

> Eglot was the first request cited. For python programmers that rely on= per
> project/directory-local or per-buffer virtual environment set up, this= can
> be heavier than needed just for fontification. I enable eglot manually= , but
> I do use python virtual environments and would disable initialization = in
> fontification buffers.

Ok. Fair enough.

> I'd prefer a more generic interface than propagating org internals= like the
> format of the fortification buffer name. It's what I submitted to = the
> markdown repo also. The buffer name scheme can change in the future wi= thout
> impacting this feature.

>From my point of view, the interface you suggest is not generic enough.
It only addresses a single use case - Org fontification.

What about another, more general approach - check if buffer name starts
with space? By convention, buffers with names starting with space are
considered internal.

--
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>
--0000000000006cad3d062bf958c8--