From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id 6MHmBTKOi2duCgEAqHPOHw:P1 (envelope-from ) for ; Sat, 18 Jan 2025 11:19:14 +0000 Received: from aspmx1.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0.migadu.com with LMTPS id 6MHmBTKOi2duCgEAqHPOHw (envelope-from ) for ; Sat, 18 Jan 2025 12:19:14 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=hQ4L8VZV; 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=posteo.net ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1737199154; 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=HROO+sxr+Fi7CTgUJ3cISbnbVl9HAaVQhDL63cfqBL4=; b=YrI9UVLtDoYkDq3Y6Etu/yQ1EoYKjtmQgmRy+Lt+8jlw032G3Qhk8brEFJ0kYlTGFKONYL AoKz+XgmNlg6lhk9ei/Qhw1VxRe1dIPUd3kw9aXaRuseOPydGFgy6e0iSONOTSiN/nQUL1 Hrjm2VFNbb19XixYv872lnlOAXHgw1HsDlWhfveWeSY/i5bxD7sQtAkibYvxnDcHR6+ZOl oFhnDISOtEpx97WOxmPuwxzz5/lQfGAcyQNEG3PYuWIvdxgRu0p4RrBo0O/LCbnU5kCK4y lkd/wWtASVkuxFl8BnktG3XHXjcsQ3cI0EhDlXMl/BERpEPxuu/Nrx9VIC+AWg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=hQ4L8VZV; 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=posteo.net ARC-Seal: i=1; s=key1; d=yhetil.org; t=1737199154; a=rsa-sha256; cv=none; b=KuTf2TQ4sKSc+9BRQwkvRxj3PCrcs1g70rJqTOzhrwvFcoLImGVJRTEPaadEnWh+Grw1EB iepJ3zXqhHerq35P2mEXU+lN3nW6V6j74ZWpnbGPOgm9sHQtuq0zYvnHPg5r5QHWAxtoq2 NbZpQJ7slQZCivi5a65izkkJjW0e667Jy6R3Lu0cXxIPjSXgyg58DoysDuzpq3IE6+68nF qjqgp4CLAnpCAhPHkRmqKZHRAU1GpygfvSSS9w5xrqEkCKlTSJW24DfHhwGhJvQs3O9vVR vOWazoelRKORTriG2z1PTPTvh0OCvMgoUmzNTV6NNrFefp9lop1KHvdBE9PmVA== 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 E97317AE69 for ; Sat, 18 Jan 2025 12:19:13 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tZ6qF-00085d-Q7; Sat, 18 Jan 2025 06:18:15 -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 1tZ6qC-00085U-VS for emacs-orgmode@gnu.org; Sat, 18 Jan 2025 06:18:13 -0500 Received: from mout02.posteo.de ([185.67.36.66]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tZ6q9-0008Ss-LA for emacs-orgmode@gnu.org; Sat, 18 Jan 2025 06:18:12 -0500 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 4C0BF240101 for ; Sat, 18 Jan 2025 12:18:06 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1737199086; bh=0ruaFVFyyVPkxcBKLHMyY7GXRbFZiD7PbRNX/xTqFko=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type: From; b=hQ4L8VZVP8tHHGAVotm8L0sLQ+qB6deWFfPxcz6Qp076dntnLLX+2EC8L/naMWloh hCjmhMtZAzLeziQyoysqeovVJ2IVKne40zPW1omDtlELj17eglqNJzaHczCAHp7zU8 koj2cYnN/c0aDmBmDS6PrHwVJ4dVsrmBiw9alG3OLDIh1xhJj2teqm1XhNlOUwaMLL QfFcqy7lals6IIujKDrnzOUnlpP0jmO5KL01WR6hCCtG/GHqnduR0PLJveG+2FoLVi M8xuJRjbTyp4QcHs4qlagDtCaMrHO2t4HaRCecNukEJfiW3Pp/rdkfjLD9/i7SC44E UU+1bjPvOkmXA== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4YZvGj3Nbgz6tws; Sat, 18 Jan 2025 12:18:05 +0100 (CET) From: Ihor Radchenko To: Ship Mints Cc: emacs-orgmode@gnu.org Subject: Re: Add org-src-is-fontify-buffer-p (patch attached) In-Reply-To: References: <87sepgr34g.fsf@localhost> Date: Sat, 18 Jan 2025 11:20:06 +0000 Message-ID: <87plkkqsgp.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=185.67.36.66; envelope-from=yantar92@posteo.net; helo=mout02.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 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, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, RCVD_IN_VALIDITY_CERTIFIED_BLOCKED=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, 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-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Scanner: mx11.migadu.com X-Migadu-Spam-Score: -5.00 X-Spam-Score: -5.00 X-Migadu-Queue-Id: E97317AE69 X-TUID: IKXGPHvS6P6J 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 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 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