From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0.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 +KgODxigi2fwPAEAqHPOHw:P1 (envelope-from ) for ; Sat, 18 Jan 2025 12:35: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 mp0.migadu.com with LMTPS id +KgODxigi2fwPAEAqHPOHw (envelope-from ) for ; Sat, 18 Jan 2025 13:35:36 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=VPazsVdO; 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=1737203736; 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=QEf8AhX7eam2wHZMTvB6Lp1FFQhAuAqvuQOUdqEqV2w=; b=lbyze+734yTdAWZD7NPieKHKbaiyyxjjCzcp2w0L5Fg/SOm+FmX2pj6rPqabfl9iz4uvwV /nCNQ3t3ujwwb/uyBqAyABx2j6j6jvQPiPypEn4w4CMtTomJQrVI8LZZfZupfA+2fD3kPe FCmNtKviIqNG8kFex7MfiGexmMPylBpt7I9MjNtd9NAbiq/GOh5iCXxsuDFGedYMiYpM7B 9G7UY3HDiSNhxB2mJrqaB7df9N5vVtIOrU9ISS2mCVG96MmXVyXecO+L9VCFMA426kz9aw h8XEPzwf1E5rk11gV+6o//OnVrXm5UnaxBaTAr2w1embLchKYutbUZW97ZqC+g== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=VPazsVdO; 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=1737203736; a=rsa-sha256; cv=none; b=eETP11sqzq4JaXbS4ctbpwfSzym6noHeD/pSx41dOMBk9pop5Ze3vZZz2NTNfiXSTXsW6L N8ey35h0yPXYKOzZ6Nw2S/3EaGa364fjlKan94xomQKGFwSufsK4R3oOycwHfgKJxhS8Kg XE97J5cPq3UQZdGmvYADz3zC0AxAoxFCktrWLG9WF1XFLXfvF7Vzos0Js/ZumkOSgtLczD /MQNCGki6cmvsZ77rin0xBRVxRpByiumPUq/plq47/qLdaw+90OHIcQj0L/IIXiwGXZhDk btWtJLTb5sX2r8Jz5Rgfcw8zR1YqgpuQIuJSh93PRpsbmVgu0ozS254ftPtvUw== 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 B425B1BA5C for ; Sat, 18 Jan 2025 13:35:35 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tZ82R-0007p2-3r; Sat, 18 Jan 2025 07:34: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 1tZ82Q-0007oo-8z for emacs-orgmode@gnu.org; Sat, 18 Jan 2025 07:34:54 -0500 Received: from mail-ej1-x633.google.com ([2a00:1450:4864:20::633]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tZ82O-0002vd-JL for emacs-orgmode@gnu.org; Sat, 18 Jan 2025 07:34:54 -0500 Received: by mail-ej1-x633.google.com with SMTP id a640c23a62f3a-aaf6b1a5f2bso790289466b.1 for ; Sat, 18 Jan 2025 04:34:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1737203691; x=1737808491; 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=QEf8AhX7eam2wHZMTvB6Lp1FFQhAuAqvuQOUdqEqV2w=; b=VPazsVdOIvKpftd6c+t+C+pHXe/SRsVtJ78pX8/S3q3fDr7F/Yuz6to8KfZyy88SLG GvGzfc0IN04tPu70BOoIZjJtakNZAIYNyjY57cQeSNqHGgwhOJjd4SSwAUwn8aUyfhCV qhO0ihGVuKDEZqE0HLr9BYzyJxji93txNP72rgS08LmCn7Ni4/GRPmkbR1AnKAsn/JL7 X/o9d7IJ9nix/iqEgSVyVo7EczJFn/Rgi2t0liTtpQQJZhPu2vYES2Yq4dsBiweyhhra 31ZVMaBJE1FfN+LYeSUIA3wxtFJ3TCipUbs4bg02l4jA67U9ViWAvmnQ8Hj5L+xiMdbb LTEQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1737203691; x=1737808491; 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=QEf8AhX7eam2wHZMTvB6Lp1FFQhAuAqvuQOUdqEqV2w=; b=uK3SWQslDND6H9UxGPvnNzViWTYTLGD7ySlaVGZnVd9sWNr+WKFYoycFW+aLlUubSU i9pFdzmoZq4QcWYRzp50o/e9C/KnLsTj0DVCp/tMj+TOlG5DD+c1nQ8jRAIssHYnN5kq zfV5Xi2oOJtzCd4RrC46M7wvTNIkxQ/roBM4wt6goK9WxyjlalzscED+vwqZqsULDEIG NmYot7zP5ucaBG42PxGhCw3FafxJBnCOI1uCTF6LzZrsTOi5viS+D9bE+FqUpyCcSoT2 CTQROrfIEf9jUH+qOdK0kYRlvTncPXDsV4VEZ8irXMtFR7FUKLlW/2VDEBzZgye9eTyP eqrg== X-Forwarded-Encrypted: i=1; AJvYcCXfqOhvgGClNr00jLVpf89oj5OlnXzRwlc5qiCNnwB3SNTO8j2IZ7ZvK3/86Vq7hQd0MecqR71xj1x0OnPS@gnu.org X-Gm-Message-State: AOJu0YwdfAULO+p2MIZBXVN777/JBIbat/ZKz0trnlA8vpy9fgWzHlTO pThoD3l7I72RYY4AvPrOwz+z6hoQcoKnq0CRUkeTGhHUZBIFilthcImNGlyLe1+nqaTXihXOj7J t8l5QAIhll6CkQckubr+dTt7S2fw= X-Gm-Gg: ASbGncseztbxRT37tG06AjG5WF69g40B2ogfWRuqbxUmn3kL7MO3oQScq8kj8X10JMv uXkXBMielmR+hYW1jSEOMBu77NApr4f0TTOzaqgH2/Gor/Ia+Ju0= X-Google-Smtp-Source: AGHT+IFLvEcQ1m3WUM1VEFa3sIzBm79bMOaOljjZleVb8veFOw/X6XjF8Cs8GKsuRTFCAP7Qo2X+/lNS/d0A1UzUTc4= X-Received: by 2002:a17:906:f590:b0:ab3:61e2:8aaf with SMTP id a640c23a62f3a-ab36e479af7mr665464966b.25.1737203690425; Sat, 18 Jan 2025 04:34:50 -0800 (PST) MIME-Version: 1.0 References: <87sepgr34g.fsf@localhost> <87plkkqsgp.fsf@localhost> <87msfoqrmg.fsf@localhost> <735ddb50-9ad3-4603-b3ca-58b99bfba949@vodafonemail.de> In-Reply-To: <735ddb50-9ad3-4603-b3ca-58b99bfba949@vodafonemail.de> From: Ship Mints Date: Sat, 18 Jan 2025 07:33:14 -0500 X-Gm-Features: AbW1kvY-q-BsOiRkHiIIZMW6bbyYYl5n-JbNKWQEJDi6OqitudXVaa58D8QHm88 Message-ID: Subject: Re: Add org-src-is-fontify-buffer-p (patch attached) To: Jens Schmidt Cc: Ihor Radchenko , emacs-orgmode@gnu.org Content-Type: multipart/alternative; boundary="000000000000ded78d062bfa4028" Received-SPF: pass client-ip=2a00:1450:4864:20::633; envelope-from=shipmints@gmail.com; helo=mail-ej1-x633.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: B425B1BA5C X-Migadu-Scanner: mx10.migadu.com X-TUID: i7KoZkqgmjqs --000000000000ded78d062bfa4028 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Indeed if this is a valid use case for buffer identification, the approach in the patch seems trivial (to me, buffer locals are more appropriate than dynamic bindings), if overkill for the purpose I proposed. On Sat, Jan 18, 2025 at 7:16=E2=80=AFAM Jens Schmidt wrote: > On 2025-01-18 12:38, 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. > > Um, sorry for butting in, but I also have an interest of recognizing > Org's special source environments, see here: > > > https://list.orgmode.org/9eaf7099554d488d921e64c4b2852a0d@vodafonemail.de= / > > That thread led to nowhere back then, but I think it still makes > sense to have the various Org source environments detectable in > a defined and explicit way, and Stephane's request reminded me > about that. > > While one could use buffer names also for detecting the source edit > buffers ("*Org Src collateral.org[ shell ]*"), it feels somehow > brittle, since names can change. So why not extend on Stephane's > request and provide some variable that informs about the various > types of Org source environments? > > Like a variable named `org-src-environment-type' bound dynamically > to possible values, e.g. `edit' or `fontify'? > > Thanks! (In particular also for taking the responsibility of Org > maintenance.) > > --000000000000ded78d062bfa4028 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Indeed if this is a valid use case for buffer identification, the approa= ch in the patch seems trivial (to me, buffer locals are more appropriate th= an dynamic bindings), if overkill for the purpose I proposed.
On Sat, Jan 18, 2025 at 7:16=E2=80=AFAM Jens Schmidt <jschmidt4gnu@vodafonemail.de<= /a>> wrote:
O= n 2025-01-18=C2=A0 12:38, Ihor Radchenko wrote:
> Ship Mints <shipmints@gmail.com> writes:
>
>> Yes, could do, and nothing needed by org-mode or markdown-mode. Co= uld also
>> test for buffer-file-name nil. Or test both. Let's recommend t= hat simpler
>> approach and I will rescind my markdown PR in favor of this simple= r
>> 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.

Um, sorry for butting in, but I also have an interest of recognizing
Org's special source environments, see here:

=C2=A0 https://list.orgmod= e.org/9eaf7099554d488d921e64c4b2852a0d@vodafonemail.de/

That thread led to nowhere back then, but I think it still makes
sense to have the various Org source environments detectable in
a defined and explicit way, and Stephane's request reminded me
about that.

While one could use buffer names also for detecting the source edit
buffers ("*Org Src collateral.org[ shell ]*"), it feels somehow brittle, since names can change.=C2=A0 So why not extend on Stephane's<= br> request and provide some variable that informs about the various
types of Org source environments?

Like a variable named `org-src-environment-type' bound dynamically
to possible values, e.g. `edit' or `fontify'?

Thanks!=C2=A0 (In particular also for taking the responsibility of Org
maintenance.)

--000000000000ded78d062bfa4028--