GNU bug report logs - #70608
[PATCH] Make preview-region work outside LaTeX-mode buffers

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: auctex; Reported by: Paul Nelson <ultrono@HIDDEN>; Keywords: patch wontfix; Done: Arash Esbati <arash@HIDDEN>; Maintainer for auctex is bug-auctex@HIDDEN.
bug closed, send any further explanations to 70608 <at> debbugs.gnu.org and Paul Nelson <ultrono@HIDDEN> Request was from Arash Esbati <arash@HIDDEN> to control <at> debbugs.gnu.org. Full text available.
Added tag(s) wontfix. Request was from Arash Esbati <arash@HIDDEN> to control <at> debbugs.gnu.org. Full text available.

Message received at 70608 <at> debbugs.gnu.org:


Received: (at 70608) by debbugs.gnu.org; 4 May 2024 19:47:50 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat May 04 15:47:50 2024
Received: from localhost ([127.0.0.1]:55415 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1s3LMM-00086o-F9
	for submit <at> debbugs.gnu.org; Sat, 04 May 2024 15:47:50 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10]:33214)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <arash@HIDDEN>)
 id 1s3LMJ-00086f-Iw; Sat, 04 May 2024 15:47:49 -0400
Received: from fencepost.gnu.org ([2001:470:142:3::e])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <arash@HIDDEN>)
 id 1s3LLq-0006Tq-A7; Sat, 04 May 2024 15:47:18 -0400
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org;
 s=fencepost-gnu-org; h=MIME-Version:Date:References:In-Reply-To:Subject:To:
 From; bh=wvDznzOxbhUL4ZLZShIUBRIJI1YSKvHHt+ylwbhDcDQ=; b=E/SZtDpoNBnsl6Xo/vlG
 q4TXM49ms58zPVniPyZCJUxwJiYrJ5U0x6r9wLdrsS33MoqOJB40zWK272t0mIwWmGGF+QNjmh3Yj
 K1zBAd/WnBaawijqrM3LpF0frnVVfTaLKtfMaLz9Vo/ha25YlnIl2sBP9MyJlQbW8sj3N5qvmyn0H
 cg6S5DtMmaQ8wmDL0p5STUw6tnMoUdPA/POZmn7+ftczdRgokwC3mRCmrZB5lOyDUd4OlgBm5zQxE
 czODkRC044dt+UPbjcbKC+NvHQ8zXZoBtmt1Cn9PXaFQpFlXd+kpsceeJcCbFpGB731kUv+nY3b/r
 rDwVOXTmA2YlKw==;
From: Arash Esbati <arash@HIDDEN>
To: Paul Nelson <ultrono@HIDDEN>
Subject: Re: bug#70608: [PATCH] Make preview-region work outside LaTeX-mode
 buffers
In-Reply-To: <CAOA-32O1sm=jX+UT7ji2PMSPUVXjQEOLiUXtKWWSUktsZN8Nug@HIDDEN>
 (Paul Nelson's message of "Sat, 4 May 2024 16:37:41 +0200")
References: <CAOA-32PEDh42XuUeUqYcarnnU9x57c567i3H8iJZv0pcspMhoA@HIDDEN>
 <m28r0p7k5o.fsf@HIDDEN>
 <CAOA-32O1sm=jX+UT7ji2PMSPUVXjQEOLiUXtKWWSUktsZN8Nug@HIDDEN>
Date: Sat, 04 May 2024 21:47:15 +0200
Message-ID: <m2plu15ph8.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 70608
Cc: 70608 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

tags 70608 wontfix
close 70608
thanks

Paul Nelson <ultrono@HIDDEN> writes:

> Hi Arash, OK, thanks for your response, please feel free to
> close. Thanks, best, Paul

Thanks, then closing.

Best, Arash




Information forwarded to bug-auctex@HIDDEN:
bug#70608; Package auctex. Full text available.

Message received at 70608 <at> debbugs.gnu.org:


Received: (at 70608) by debbugs.gnu.org; 4 May 2024 14:38:26 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat May 04 10:38:26 2024
Received: from localhost ([127.0.0.1]:54050 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1s3GWw-0001WF-6L
	for submit <at> debbugs.gnu.org; Sat, 04 May 2024 10:38:26 -0400
Received: from mail-io1-xd30.google.com ([2607:f8b0:4864:20::d30]:54579)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <ultrono@HIDDEN>) id 1s3GWr-0001W3-Gy
 for 70608 <at> debbugs.gnu.org; Sat, 04 May 2024 10:38:24 -0400
Received: by mail-io1-xd30.google.com with SMTP id
 ca18e2360f4ac-7deb424da41so28234239f.1
 for <70608 <at> debbugs.gnu.org>; Sat, 04 May 2024 07:37:58 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20230601; t=1714833472; x=1715438272; darn=debbugs.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=qdUWZzgSYaFVKT0vOOzSWcQaxa8RzoOeky38gVkT7RA=;
 b=ObdBldHEd9KZoAMrdoCnNQDag6JfhbmSd/sTUL9vRYtMh0ClXOoZD6+x6IeoffkTXI
 RyRGiMm0SvTP8zREzfX+5myfUKOPnPdgMC+5OqIairyByhiLmLRWgouTgMrCVbzZyZjY
 Wxrc66mKd6F8s0DY1j9PUHs87SM4sv7USH+vZK+fnlYCEAywHZJ+KGcCIq33m+2Kvw7F
 wzggddKWLJ+ASzGccPvgZKAqHaMOH8y5t9AHOUH0bxOULw1tn3Y1+f+FV1S/EGGwH3qu
 IPhyGsS60Av6My3unlV9BxDBXQv80JQ3J7ylcLP43duNm/hlfa46Lpev68tkh0STAeT/
 KsTw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20230601; t=1714833472; x=1715438272;
 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=qdUWZzgSYaFVKT0vOOzSWcQaxa8RzoOeky38gVkT7RA=;
 b=oYYDJVdXVeOK9+9ulNxjD1B9Q0nKWH7jJmAn8zvmN0dQRRGVG1iet5KNZAgJmiX1+N
 HQ/eDYMRSQKEjiKDq+g5rYkXpkrWYxXUvBaJanF8ynQFuMPY6+UrD6Hhb2R4k3OxkarG
 XT7ZMyqDYJvuI76pd5SVq6MrlDdCvMlS2nrVamH5gRlCOAfd57taQBSkrchu5/tndg7w
 Ik6p2mj5a/5Hu6HEbEHPcAy0rSqetIvsKWuX4vVc6xXu5kYh8TGuCx2in/iWFEO36y7d
 FSqnOs2OtsqlHQXOAwFXYF3qhnciHSRqtWyyD4LlOwkuCh7qQDdnKdJcOUQdY/zdY5Ez
 4Rfg==
X-Gm-Message-State: AOJu0YwTjnPorxh3ds2/TaoQjCH6YYhSWImY+1SKUwpuyGyp6TRTf0wr
 k5Mf1hZeClPFTeyeeTW1FtFfewje9Jq8c1mSzlZIi1vDmjg1IWvSuezAiE4wnbG2HTj0PkB+XXm
 5x5EW9+lJjIzRKpZdEd+J+RbXdZ81Ag==
X-Google-Smtp-Source: AGHT+IFsmRi7aRJzPPC5VSw4Qo0+zFt7yp96bPILu5LGg/rkCsqmkX+53vIfswtOMZjeFR4VoUi3zv7oZS5DuwjYYQw=
X-Received: by 2002:a5d:894f:0:b0:7de:a81a:ca7c with SMTP id
 b15-20020a5d894f000000b007dea81aca7cmr6426057iot.2.1714833472363; Sat, 04 May
 2024 07:37:52 -0700 (PDT)
MIME-Version: 1.0
References: <CAOA-32PEDh42XuUeUqYcarnnU9x57c567i3H8iJZv0pcspMhoA@HIDDEN>
 <m28r0p7k5o.fsf@HIDDEN>
In-Reply-To: <m28r0p7k5o.fsf@HIDDEN>
From: Paul Nelson <ultrono@HIDDEN>
Date: Sat, 4 May 2024 16:37:41 +0200
Message-ID: <CAOA-32O1sm=jX+UT7ji2PMSPUVXjQEOLiUXtKWWSUktsZN8Nug@HIDDEN>
Subject: Re: bug#70608: [PATCH] Make preview-region work outside LaTeX-mode
 buffers
To: Arash Esbati <arash@HIDDEN>
Content-Type: multipart/alternative; boundary="000000000000f8251d0617a1c736"
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 70608
Cc: 70608 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

--000000000000f8251d0617a1c736
Content-Type: text/plain; charset="UTF-8"

Hi Arash, OK, thanks for your response, please feel free to close. Thanks,
best,  Paul

On Sat, 4 May 2024 at 15:59, Arash Esbati <arash@HIDDEN> wrote:

> Hi Paul,
>
> Paul Nelson <ultrono@HIDDEN> writes:
>
> > This patch has no effect on existing behavior (in LaTeX-mode), but
> > makes it so that preview-region works in any non-LaTeX-mode buffer for
> > which TeX-master has been set to a valid tex file.  This is intended
> > for internal use by other packages.  For example, I've been using
> > something equivalent to this to preview org-mode LaTeX source blocks,
> > tex code in Lean4 comments, (...).
> >
> > (One could avoid this patch by manually initializing TeX-header-end
> > and TeX-trailer-start before calling preview-region, but it seems
> > better to me to provide working defaults as in the patch.  Any
> > feedback would be welcome, of course.)
>
> I'm a little reluctant about this change; tex.el provides generic
> functions/variables which are set by the modes; `TeX-header-end' and
> `TeX-trailer-start' are some of them.  My preference is what you
> describe above: If `preview-region' is used outside `LaTeX-mode', the 2
> variables should be initialized there somehow and not inside tex.el.
>
> Best, Arash
>

--000000000000f8251d0617a1c736
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"auto">Hi Arash, OK, thanks for your response, please feel free =
to close. Thanks, best, =C2=A0Paul=C2=A0</div><div dir=3D"auto"><br></div><=
div><div class=3D"gmail_quote"><div dir=3D"ltr" class=3D"gmail_attr">On Sat=
, 4 May 2024 at 15:59, Arash Esbati &lt;<a href=3D"mailto:arash@HIDDEN">ar=
ash@HIDDEN</a>&gt; wrote:<br></div><blockquote class=3D"gmail_quote" style=
=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Paul,=
<br>
<br>
Paul Nelson &lt;<a href=3D"mailto:ultrono@HIDDEN" target=3D"_blank">ultr=
ono@HIDDEN</a>&gt; writes:<br>
<br>
&gt; This patch has no effect on existing behavior (in LaTeX-mode), but<br>
&gt; makes it so that preview-region works in any non-LaTeX-mode buffer for=
<br>
&gt; which TeX-master has been set to a valid tex file.=C2=A0 This is inten=
ded<br>
&gt; for internal use by other packages.=C2=A0 For example, I&#39;ve been u=
sing<br>
&gt; something equivalent to this to preview org-mode LaTeX source blocks,<=
br>
&gt; tex code in Lean4 comments, (...).<br>
&gt;<br>
&gt; (One could avoid this patch by manually initializing TeX-header-end<br=
>
&gt; and TeX-trailer-start before calling preview-region, but it seems<br>
&gt; better to me to provide working defaults as in the patch.=C2=A0 Any<br=
>
&gt; feedback would be welcome, of course.)<br>
<br>
I&#39;m a little reluctant about this change; tex.el provides generic<br>
functions/variables which are set by the modes; `TeX-header-end&#39; and<br=
>
`TeX-trailer-start&#39; are some of them.=C2=A0 My preference is what you<b=
r>
describe above: If `preview-region&#39; is used outside `LaTeX-mode&#39;, t=
he 2<br>
variables should be initialized there somehow and not inside tex.el.<br>
<br>
Best, Arash<br>
</blockquote></div></div>

--000000000000f8251d0617a1c736--




Information forwarded to bug-auctex@HIDDEN:
bug#70608; Package auctex. Full text available.

Message received at 70608 <at> debbugs.gnu.org:


Received: (at 70608) by debbugs.gnu.org; 4 May 2024 13:59:54 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat May 04 09:59:53 2024
Received: from localhost ([127.0.0.1]:53862 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1s3Fvd-00010B-9m
	for submit <at> debbugs.gnu.org; Sat, 04 May 2024 09:59:53 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10]:35582)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <arash@HIDDEN>) id 1s3FvY-000100-06
 for 70608 <at> debbugs.gnu.org; Sat, 04 May 2024 09:59:51 -0400
Received: from fencepost.gnu.org ([2001:470:142:3::e])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <arash@HIDDEN>)
 id 1s3Fv5-000631-JO; Sat, 04 May 2024 09:59:19 -0400
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org;
 s=fencepost-gnu-org; h=MIME-Version:Date:References:In-Reply-To:Subject:To:
 From; bh=/dNYEX7JEdnWb8jLHE0//2JGg+QyueAsmaFIMG7rV4U=; b=gXa3gn1EVR8Ny/um+yDS
 FNIOp038nimXgWjwWs6FfQTbSoOP9GPSqzKMWnaP6MIFmeZ6kemAhpIdCi9gG8Oi8ochuVS/n96Pk
 xsVrXiDQrpbhl8bANBvTUc7ZaLK3FqV/etpFYcseSwVmdGrQtycpNQh7NUZToCI3+Kx6VwFe7SILu
 7TZApIbM+0cf+d1aCJWr03MM24h2XrQkkMECFmi9xBauTks5oTaJVZO5j1EmHyk6k/wUUruHJVE77
 z84/pSwpI4lfP8ZSoB6wgx0d+PcC1QZBC8C+L2wh4Jvld9ipuKH1A4Z/kaV7G6rmH9bc64fpQAv4k
 HV/zUtBG/uFfzw==;
From: Arash Esbati <arash@HIDDEN>
To: Paul Nelson <ultrono@HIDDEN>
Subject: Re: bug#70608: [PATCH] Make preview-region work outside LaTeX-mode
 buffers
In-Reply-To: <CAOA-32PEDh42XuUeUqYcarnnU9x57c567i3H8iJZv0pcspMhoA@HIDDEN>
 (Paul Nelson's message of "Sat, 27 Apr 2024 15:52:14 +0200")
References: <CAOA-32PEDh42XuUeUqYcarnnU9x57c567i3H8iJZv0pcspMhoA@HIDDEN>
Date: Sat, 04 May 2024 15:59:15 +0200
Message-ID: <m28r0p7k5o.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 70608
Cc: 70608 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

Hi Paul,

Paul Nelson <ultrono@HIDDEN> writes:

> This patch has no effect on existing behavior (in LaTeX-mode), but
> makes it so that preview-region works in any non-LaTeX-mode buffer for
> which TeX-master has been set to a valid tex file.  This is intended
> for internal use by other packages.  For example, I've been using
> something equivalent to this to preview org-mode LaTeX source blocks,
> tex code in Lean4 comments, (...).
>
> (One could avoid this patch by manually initializing TeX-header-end
> and TeX-trailer-start before calling preview-region, but it seems
> better to me to provide working defaults as in the patch.  Any
> feedback would be welcome, of course.)

I'm a little reluctant about this change; tex.el provides generic
functions/variables which are set by the modes; `TeX-header-end' and
`TeX-trailer-start' are some of them.  My preference is what you
describe above: If `preview-region' is used outside `LaTeX-mode', the 2
variables should be initialized there somehow and not inside tex.el.

Best, Arash




Information forwarded to bug-auctex@HIDDEN:
bug#70608; Package auctex. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 27 Apr 2024 13:53:18 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Apr 27 09:53:17 2024
Received: from localhost ([127.0.0.1]:55000 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1s0iUL-0000PT-4B
	for submit <at> debbugs.gnu.org; Sat, 27 Apr 2024 09:53:17 -0400
Received: from lists.gnu.org ([2001:470:142::17]:51202)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <ultrono@HIDDEN>) id 1s0iU1-0000Jy-A8
 for submit <at> debbugs.gnu.org; Sat, 27 Apr 2024 09:53:06 -0400
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 <ultrono@HIDDEN>) id 1s0iTc-0007vy-Mn
 for bug-auctex@HIDDEN; Sat, 27 Apr 2024 09:52:28 -0400
Received: from mail-io1-xd30.google.com ([2607:f8b0:4864:20::d30])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.90_1) (envelope-from <ultrono@HIDDEN>) id 1s0iTb-0005bA-9j
 for bug-auctex@HIDDEN; Sat, 27 Apr 2024 09:52:28 -0400
Received: by mail-io1-xd30.google.com with SMTP id
 ca18e2360f4ac-7dad81110cfso125035139f.1
 for <bug-auctex@HIDDEN>; Sat, 27 Apr 2024 06:52:26 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20230601; t=1714225946; x=1714830746; darn=gnu.org;
 h=to:subject:message-id:date:from:mime-version:from:to:cc:subject
 :date:message-id:reply-to;
 bh=xgdYHVL/YKCy+SB0yxv3katPTIVJif8zPRIoQgcEBjw=;
 b=IFEZ4CZtSIbec3/zUs+/zAniLPtSzLdVLQVwksilpW7O6UlMvBETf105tRzjsXGiRd
 273cioOPlQzjUetosZELDKzuDSlHVEiZ8faNkja/ANHqBg3Wiu6uZBWSxnbQ4MhKblnf
 tX7V5WLTH8VDKE4F17/Iyy4ZYoSfWaaq0+m+og/GlJRid2/gDCtnmY3jG00frH3dEvG8
 oKG/NW9i9q2fR50JYeSaw9xn5EjsgltUOGRjyqifKBrAkrjomXt9nQ3Jaju+2pbVy2sP
 ZFyiGJWLeFYu0aA51mQj+Om7/FNf8Iwe/VD6YMHb7V9XaXutQh0pClqXDKJ82cLFw0lT
 6Jow==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20230601; t=1714225946; x=1714830746;
 h=to:subject:message-id:date:from:mime-version:x-gm-message-state
 :from:to:cc:subject:date:message-id:reply-to;
 bh=xgdYHVL/YKCy+SB0yxv3katPTIVJif8zPRIoQgcEBjw=;
 b=QId0XzAi6lFrCywbk7ORqQcqVC+ecmXDGb+gUlWFuG70wsIJIYK42F6SIW1+vm8YIM
 osVx3wnPZ06adH3t8awJ27W1oM/meyCtvYJd3rvb+eKwHxGWp2StRUC4yj99IwrWe9dJ
 mIh5Q9dZJ5W1UbDmAEvRMsT3KZN9mIxb2OeBweViJPDCYHedTtwyMQeKItHkWk3bi+So
 kkPAqPUBncONf8ylRIpJFhksNr6r//iuRmTaYy852TL1lhkD+5jrzpe1Cn19YBB9UwfE
 HM53l8MOGUioMdSR8TA8Hi6dsZo0Tp59Ott+gFgc1bQVKwovG9E88426TwqBjPwF3FEF
 Z9gQ==
X-Gm-Message-State: AOJu0Yx5Z0EzWkkTv2rf+IZYk0sMY+i8iaQNJfnzf8aliAJpWyAnhC6Z
 VM39WJlom/9Xu83oOiKetM5M8KSmogjq+cTDsO9FEzpFfclGIAo8jC5QCuL2qINE7xuKmdScWdq
 2Ic0mt9yeI51xAqyh6Te4ATGxhfQ0evj0
X-Google-Smtp-Source: AGHT+IEw3AuduVEEQ6ScgsSGHZb+yk6BHyJT4jaclBIbcBRoIk2fyCsV4s4ds9605jYoF+qJ9hUxtcpOucWJKQU+cBU=
X-Received: by 2002:a05:6e02:158a:b0:36a:fa56:b0d5 with SMTP id
 m10-20020a056e02158a00b0036afa56b0d5mr6894935ilu.7.1714225945832; Sat, 27 Apr
 2024 06:52:25 -0700 (PDT)
MIME-Version: 1.0
From: Paul Nelson <ultrono@HIDDEN>
Date: Sat, 27 Apr 2024 15:52:14 +0200
Message-ID: <CAOA-32PEDh42XuUeUqYcarnnU9x57c567i3H8iJZv0pcspMhoA@HIDDEN>
Subject: [PATCH] Make preview-region work outside LaTeX-mode buffers
To: bug-auctex@HIDDEN
Content-Type: multipart/mixed; boundary="000000000000910bc50617145484"
Received-SPF: pass client-ip=2607:f8b0:4864:20::d30;
 envelope-from=ultrono@HIDDEN; helo=mail-io1-xd30.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,
 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-Spam-Score: 1.0 (+)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.0 (/)

--000000000000910bc50617145484
Content-Type: text/plain; charset="UTF-8"

This patch has no effect on existing behavior (in LaTeX-mode), but
makes it so that preview-region works in any non-LaTeX-mode buffer for
which TeX-master has been set to a valid tex file.  This is intended
for internal use by other packages.  For example, I've been using
something equivalent to this to preview org-mode LaTeX source blocks,
tex code in Lean4 comments, (...).

(One could avoid this patch by manually initializing TeX-header-end
and TeX-trailer-start before calling preview-region, but it seems
better to me to provide working defaults as in the patch.  Any
feedback would be welcome, of course.)

Thanks, best,

Paul

--000000000000910bc50617145484
Content-Type: application/octet-stream; 
	name="0001-Make-preview-region-work-outside-LaTeX-mode-buffers.patch"
Content-Disposition: attachment; 
	filename="0001-Make-preview-region-work-outside-LaTeX-mode-buffers.patch"
Content-Transfer-Encoding: base64
Content-ID: <f_lvi5twbv0>
X-Attachment-Id: f_lvi5twbv0

RnJvbSBiYzM0ZjYxZjEzZDgxMDJjNGM3MWQ3M2I5ZTY2MmUwMzBkYWQ5MjE1IE1vbiBTZXAgMTcg
MDA6MDA6MDAgMjAwMQpGcm9tOiBQYXVsIE5lbHNvbiA8dWx0cm9ub0BnbWFpbC5jb20+CkRhdGU6
IFNhdCwgMjcgQXByIDIwMjQgMTU6NDM6NTQgKzAyMDAKU3ViamVjdDogW1BBVENIXSBNYWtlIHBy
ZXZpZXctcmVnaW9uIHdvcmsgb3V0c2lkZSBMYVRlWC1tb2RlIGJ1ZmZlcnMKCiogdGV4LmVsIChU
ZVgtcmVnaW9uLWNyZWF0ZSk6IFByb3ZpZGUgZGVmYXVsdCB2YWx1ZXMgZm9yCmhlYWRlci1lbmQg
YW5kIHRyYWlsZXItc3RhcnQuCi0tLQogdGV4LmVsIHwgNCArKy0tCiAxIGZpbGUgY2hhbmdlZCwg
MiBpbnNlcnRpb25zKCspLCAyIGRlbGV0aW9ucygtKQoKZGlmZiAtLWdpdCBhL3RleC5lbCBiL3Rl
eC5lbAppbmRleCBkMjg2NGI1Zi4uNDkyZmJlYTggMTAwNjQ0Ci0tLSBhL3RleC5lbAorKysgYi90
ZXguZWwKQEAgLTkwNzUsOCArOTA3NSw4IEBAIG9yaWdpbmFsIGZpbGUuIgogCiAgIChsZXQqICg7
OyBXZSBzaGlmdCBidWZmZXIgYSBsb3QsIHNvIHdlIG11c3Qga2VlcCB0cmFjayBvZiB0aGUgYnVm
ZmVyCiAgICAgICAgICA7OyBsb2NhbCB2YXJpYWJsZXMuCi0gICAgICAgICAoaGVhZGVyLWVuZCBU
ZVgtaGVhZGVyLWVuZCkKLSAgICAgICAgICh0cmFpbGVyLXN0YXJ0IFRlWC10cmFpbGVyLXN0YXJ0
KQorICAgICAgICAgKGhlYWRlci1lbmQgKG9yIFRlWC1oZWFkZXItZW5kIExhVGVYLWhlYWRlci1l
bmQpKQorICAgICAgICAgKHRyYWlsZXItc3RhcnQgKG9yIFRlWC10cmFpbGVyLXN0YXJ0IExhVGVY
LXRyYWlsZXItc3RhcnQpKQogCiAgICAgICAgICA7OyBXZSBzZWFjaCBmb3IgaGVhZGVyIGFuZCB0
cmFpbGVyIGluIHRoZSBtYXN0ZXIgZmlsZS4KICAgICAgICAgIChvcmlnLWJ1ZmZlciAoY3VycmVu
dC1idWZmZXIpKQotLSAKMi4zOS4zIChBcHBsZSBHaXQtMTQ1KQoK
--000000000000910bc50617145484--




Acknowledgement sent to Paul Nelson <ultrono@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-auctex@HIDDEN. Full text available.
Report forwarded to bug-auctex@HIDDEN:
bug#70608; Package auctex. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Sat, 4 May 2024 20:00:02 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.