From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id AMUFEgeXi2eZwgAAqHPOHw:P1 (envelope-from ) for ; Sat, 18 Jan 2025 11:56:55 +0000 Received: from aspmx1.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0.migadu.com with LMTPS id AMUFEgeXi2eZwgAAqHPOHw (envelope-from ) for ; Sat, 18 Jan 2025 12:56:55 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=NGnCzaN5; 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=1737201415; 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=4Xu8rQqW8SlllwOi85BcbsglLHBB6Xuj2YQ5in/oqBA=; b=rvJn3T6YocPAUtlqfdq0oyUmDdyJHz1FP7DndtOu8cMqdxZhZaCeRvr5cMZ59FgVQPRdX9 IdBNYUJWdSilqJrNlq8z5SObP7nCFEkiHmSGXogXeUSXSVX0fAbud0uYR2WELzrsr2Ukiy Sg9Do6et53hKMovYPiNJ2MwqdN4TAq90OIHc48snfFBzRR88n7sy+R+0yJWjKw2v1p5RO9 NDD0NTtr4m/a7PzNIwTWPv+u6QKY6Zd9LBQPk+1SNrHK8PXBjIJ3VTsFdGvAhjEZaXC7u9 TTbaebXkKok5I9XGLtkLU1l9Iap9DXa8d+lUtbnj22+TWPIBXt3najbaHE5AOQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=NGnCzaN5; 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=1737201415; a=rsa-sha256; cv=none; b=YjZGrOk9uF88qvgDGMTpDZCh9tK/B19sNlPtJWsznMGLPVn9uNWm1W8B8AjuKlzGEukKCn uenB4nBLLcK3ap4Zp+wuqn+kWctiWE/WJbsSOXc3c8AcZl5jMyKdG31+DCbLZ2PLOmuLvN AGQuC0mGf+5cI6kgno4GPLc6+uyjVO9env0u5xD/gACfMvRfyvImiAB1AaVPYhQ0drzkkr vhjh2MdGXHpD7gNHHBfmkEsK8pab517kYwEIDISC7Q+ZxZKMoG78OybvCwUh+xN0blXuV/ BeFeRV6SI8ReCRjj7FLfmUJSiyjThvNms5IJ4GgaHqnzXi6hQmdXaZTe6YdgkQ== 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 EA75E7284 for ; Sat, 18 Jan 2025 12:56:54 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tZ7Qx-0007kI-SR; Sat, 18 Jan 2025 06:56:12 -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 1tZ7Qv-0007k5-10 for emacs-orgmode@gnu.org; Sat, 18 Jan 2025 06:56:09 -0500 Received: from mail-vs1-xe31.google.com ([2607:f8b0:4864:20::e31]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tZ7Qq-0005pV-CL for emacs-orgmode@gnu.org; Sat, 18 Jan 2025 06:56:08 -0500 Received: by mail-vs1-xe31.google.com with SMTP id ada2fe7eead31-4afefc876c6so805587137.2 for ; Sat, 18 Jan 2025 03:56:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1737201363; x=1737806163; 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=4Xu8rQqW8SlllwOi85BcbsglLHBB6Xuj2YQ5in/oqBA=; b=NGnCzaN54Y4L3u4EJRkRIpcSZyQ4ymvyX15Q6AnCKiL4CCCb/0iMLr7o6ZCOS3ZRol /2l35Tq7lfk8fNRdDgemhyVMf52y4WZ9S7dKxri+PFVz8l9aWfEeqE0XIRCS/TGp7Lcc 7xgWMMzoPFg6oPwOr5lbAw0bIAXkrPflU+ZOLXaKF41wR8ezbJPXv+iPQNIntafmFgws 1BeRKpbM6vlN3bsi7vK1Sj79fC5f52D7xZFlBhc2Ec3t+wm+cHo4ueM2Uwq35bU6v26M tayDs4b6YmK8JYL8Ok6GewSodIilOr5ttQxR8S8ljiO92LFiZYISilY/fR7yNnZayYyn 3prQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1737201363; x=1737806163; 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=4Xu8rQqW8SlllwOi85BcbsglLHBB6Xuj2YQ5in/oqBA=; b=mWI/Ec+ZSyE7/kOPjOJab1B9beNq4jJxiOiBJglQXu/ONdpTi5PcdSgk8OlcLSxDfY uraLJY0ZJKWwSXiOBjdsxexKfv0CeN9AK10IkSqVeuxAYdlJC256hOnhtaCiYfPKWu3t b0jgrYxKcYSH2+bSBXMaLSVXwk11s56VyvkEB9CWQ+vOVeq9DAqlBdkgG79bx7j8YS5/ iCaIsHB9GZYXyZtOxNsn6PmhGkIAmnNCCH2VMz+iJ7wcWY2bhdUcwehzIxSCrp0fsgWl x9Uwu8W2fsIMGa8jGdxU+T+qOnEJ15hx5Xg2OMDUPGVVWuL0ce4Z1n5hyWirxTq3JLov tMuw== X-Gm-Message-State: AOJu0YzQQTHqqYRb3z/Enck8OWZEZ6whK4O3TyvZSpWZa7SSdsKCbX76 0ivKnsOLvYYohgVCxkCzU8BWn+LvYJa6naMB4tLu+hXgArLsQdJZSJwF1zpKQydKpsIId6i+Fja P4UI9kEp0JOx1f4uG8Xe9sEa8duJsXKwv X-Gm-Gg: ASbGnctd8av8GjNkF0czXkwwzJ3tjpMGs2szQzrkBhvnKU4WH/sUR+g1UT+e3RU9Rdg /mPgJuRJpeYPGMvxQMGhK0F/UINMa54TwSGX0JuryijGLXcFI6LU= X-Google-Smtp-Source: AGHT+IFJqYGEJz1/Zrtci6trbxQSAAirbe7OlMuZoENmvUNUwKIv764KrNG6m3uzxSy6Nexfjw1nGLM/1aB9IeEH5Uw= X-Received: by 2002:a05:6102:3f03:b0:4b2:5ce4:2b4f with SMTP id ada2fe7eead31-4b690b5d82dmr6192321137.2.1737201362977; Sat, 18 Jan 2025 03:56:02 -0800 (PST) MIME-Version: 1.0 References: <87sepgr34g.fsf@localhost> <87plkkqsgp.fsf@localhost> <87msfoqrmg.fsf@localhost> In-Reply-To: <87msfoqrmg.fsf@localhost> From: Ship Mints Date: Sat, 18 Jan 2025 06:54:29 -0500 X-Gm-Features: AbW1kva66NLYO9UODMJ7Ex2dvzXtJtn-90t82N2f8m0570rZc4oOxRCsd1wWhxs 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="00000000000024cd2d062bf9b6d2" Received-SPF: pass client-ip=2607:f8b0:4864:20::e31; envelope-from=shipmints@gmail.com; helo=mail-vs1-xe31.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-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Scanner: mx12.migadu.com X-Migadu-Spam-Score: -6.20 X-Spam-Score: -6.20 X-Migadu-Queue-Id: EA75E7284 X-TUID: OBWU+uj18OAt --00000000000024cd2d062bf9b6d2 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 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 simpl= er > > 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 > --00000000000024cd2d062bf9b6d2 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
For the record, this is what I've recommended 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-prefix-p " " (buf= fer-name))))
=C2=A0 =C2=A0 =C2=A0 ;; do something expensive
=C2=A0 = =C2=A0 =C2=A0 ))

On Sat, Jan 18, 2025 at 6:3= 6=E2=80=AFAM Ihor Radchenko <yant= ar92@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>
--00000000000024cd2d062bf9b6d2--