GNU bug report logs - #54200
13.0.14; Preview incorrectly folds math environments with TeX-engine LuaTeX

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: Liam Hupfer <liam@HIDDEN>; Keywords: wontfix; Done: Arash Esbati <arash@HIDDEN>; Maintainer for auctex is bug-auctex@HIDDEN.
bug closed, send any further explanations to 54200 <at> debbugs.gnu.org and Liam Hupfer <liam@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 54200 <at> debbugs.gnu.org:


Received: (at 54200) by debbugs.gnu.org; 7 Mar 2024 06:03:20 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Mar 07 01:03:20 2024
Received: from localhost ([127.0.0.1]:52294 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1ri6qd-0001sF-V4
	for submit <at> debbugs.gnu.org; Thu, 07 Mar 2024 01:03:20 -0500
Received: from smtp1a.inetd.co.jp ([210.129.88.11]:50410)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <ikumi@HIDDEN>) id 1ri6qb-0001s5-Q4
 for 54200 <at> debbugs.gnu.org; Thu, 07 Mar 2024 01:03:19 -0500
Received: from localhost (42-144-34-11.rev.home.ne.jp [42.144.34.11])
 by smtp1a.inetd.co.jp (Postfix) with ESMTPA id 31F275C;
 Thu,  7 Mar 2024 15:02:44 +0900 (JST)
From: Ikumi Keita <ikumi@HIDDEN>
To: Arash Esbati <arash@HIDDEN>
Subject: Re: bug#54200: 13.0.14;
 Preview incorrectly folds math environments with TeX-engine LuaTeX
In-reply-to: <m28r2v3ylf.fsf@HIDDEN>
References: <874k4iptw8.fsf@HIDDEN> <87k0dev44u.fsf@HIDDEN>
 <86516.1646817420@localhost> <87czivtnvp.fsf@HIDDEN>
 <87023.1646833784@localhost> <79765.1648472251@localhost>
 <m28r2v3ylf.fsf@HIDDEN>
Comments: In-reply-to Arash Esbati <arash@HIDDEN>
 message dated "Wed, 06 Mar 2024 21:16:28 +0100."
X-Mailer: MH-E 8.6+git; nmh 1.8; Emacs 29.2
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-ID: <5323.1709791363.1@localhost>
Date: Thu, 07 Mar 2024 15:02:43 +0900
Message-ID: <5324.1709791363@localhost>
X-Spam-Score: -0.0 (/)
X-Debbugs-Envelope-To: 54200
Cc: David Kastrup <dak@HIDDEN>, 54200 <at> debbugs.gnu.org, liam@HIDDEN
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 (-)

>>>>> Arash Esbati <arash@HIDDEN> writes:
> Ikumi Keita <ikumi@HIDDEN> writes:
>> Hi David and Liam,
>> 
>>>>>>> Ikumi Keita <ikumi@HIDDEN> writes:
>>>> Error context is produced by the TeX engine itself, so in this case it
>>>> would be the fault of LuaTeX and should likely be reported to its
>>>> developer list at dev-luatex@HIDDEN .
>> 
>> I reported the issue in LuaTeX developer list[1], but it doesn't seem
>> promissing.
>> 
>> The core developers don't regard it as a bug basically, thus working
>> with low priority on it. This issue, if it is ever resolved, will be a
>> long way off unfortunately.
>> 
>> [1] Thread beginning with
>> https://mailman.ntg.nl/pipermail/dev-luatex/2022-March/006601.html

> Hi Keita,

> can we assume that this is a "wontfix"?  The way I see it we rely on
> LuaTeX here.

Yes, I think so. Thank you for enthusiatic work on unresolved bugs these
days!

Regards,
Ikumi Keita
#StandWithUkraine #StopWarInUkraine
#Gaza #StopMassiveKilling #CeasefireNOW




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

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


Received: (at 54200) by debbugs.gnu.org; 6 Mar 2024 20:17:15 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Mar 06 15:17:15 2024
Received: from localhost ([127.0.0.1]:51675 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1rhxhT-0006RA-Bu
	for submit <at> debbugs.gnu.org; Wed, 06 Mar 2024 15:17:15 -0500
Received: from eggs.gnu.org ([209.51.188.92]:44068)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <arash@HIDDEN>) id 1rhxhQ-0006Qw-RU
 for 54200 <at> debbugs.gnu.org; Wed, 06 Mar 2024 15:17:13 -0500
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 1rhxgo-0003Ux-Jc; Wed, 06 Mar 2024 15:16:34 -0500
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=Yq4S83GPWdIL7lPgbvsI5VTGxzYth/HHlt7TfeUtlVI=; b=mBZFamsKAzIb8XnbPCKX
 ipRnvZFdg24RjEEPbBiiS2C+P1ib0eB2fB/nKsGppMTHitGsfofj/y/TydTpVUR7lGzHYnqn6WZtq
 TRIDx1G1yxyUhboXgB5XxFrX/eHOg2tUmtzG5il/dYPeClWDBEY+53IpZ7KhP5cGQ+i2Hek06I8nS
 a3uAQl5YThQ4FiE985kzHLKuea5D+xd2PuD1RAbUQUL2Uy2o8xKNUX7dKpy1XNs+Xr29IjLQyHsHJ
 Prxo78bei9Yv7RzXKcj4xND78Fqsxyczh60K4qjGO7sQyoGKZGc24oHJb5SW2tcQ1gUGcAeHVGVVf
 STib7XoSEUHFTA==;
From: Arash Esbati <arash@HIDDEN>
To: Ikumi Keita <ikumi@HIDDEN>
Subject: Re: bug#54200: 13.0.14; Preview incorrectly folds math environments
 with TeX-engine LuaTeX
In-Reply-To: <79765.1648472251@localhost> (Ikumi Keita's message of "Mon, 28
 Mar 2022 21:57:31 +0900")
References: <874k4iptw8.fsf@HIDDEN> <87k0dev44u.fsf@HIDDEN>
 <86516.1646817420@localhost> <87czivtnvp.fsf@HIDDEN>
 <87023.1646833784@localhost> <79765.1648472251@localhost>
Date: Wed, 06 Mar 2024 21:16:28 +0100
Message-ID: <m28r2v3ylf.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: 54200
Cc: David Kastrup <dak@HIDDEN>, 54200 <at> debbugs.gnu.org, liam@HIDDEN
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 (---)

Ikumi Keita <ikumi@HIDDEN> writes:

> Hi David and Liam,
>
>>>>>> Ikumi Keita <ikumi@HIDDEN> writes:
>>> Error context is produced by the TeX engine itself, so in this case it
>>> would be the fault of LuaTeX and should likely be reported to its
>>> developer list at dev-luatex@HIDDEN .
>
> I reported the issue in LuaTeX developer list[1], but it doesn't seem
> promissing.
>
> The core developers don't regard it as a bug basically, thus working
> with low priority on it. This issue, if it is ever resolved, will be a
> long way off unfortunately.
>
> [1] Thread beginning with
> https://mailman.ntg.nl/pipermail/dev-luatex/2022-March/006601.html

Hi Keita,

can we assume that this is a "wontfix"?  The way I see it we rely on
LuaTeX here.

Best, Arash




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

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


Received: (at 54200) by debbugs.gnu.org; 28 Mar 2022 12:57:38 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Mar 28 08:57:38 2022
Received: from localhost ([127.0.0.1]:57507 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1nYowE-0000iC-7A
	for submit <at> debbugs.gnu.org; Mon, 28 Mar 2022 08:57:38 -0400
Received: from smtp1a.inetd.co.jp ([210.129.88.11]:55564)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <ikumi@HIDDEN>) id 1nYowA-0000i2-JJ
 for 54200 <at> debbugs.gnu.org; Mon, 28 Mar 2022 08:57:37 -0400
Received: from localhost (61-24-188-3.rev.home.ne.jp [61.24.188.3])
 by smtp1a.inetd.co.jp (Postfix) with ESMTPA id 8451A2DA;
 Mon, 28 Mar 2022 21:57:32 +0900 (JST)
From: Ikumi Keita <ikumi@HIDDEN>
To: David Kastrup <dak@HIDDEN>, liam@HIDDEN
Subject: Re: bug#54200: 13.0.14;
 Preview incorrectly folds math environments with TeX-engine LuaTeX
In-reply-to: <87023.1646833784@localhost>
References: <874k4iptw8.fsf@HIDDEN> <87k0dev44u.fsf@HIDDEN>
 <86516.1646817420@localhost> <87czivtnvp.fsf@HIDDEN>
 <87023.1646833784@localhost>
Comments: In-reply-to Ikumi Keita <ikumi@HIDDEN>
 message dated "Wed, 09 Mar 2022 22:49:44 +0900."
X-Mailer: MH-E 8.6+git; nmh 1.7.1; GNU Emacs 27.2
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-ID: <79764.1648472251.1@localhost>
Date: Mon, 28 Mar 2022 21:57:31 +0900
Message-ID: <79765.1648472251@localhost>
X-Spam-Score: -0.0 (/)
X-Debbugs-Envelope-To: 54200
Cc: 54200 <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 (-)

Hi David and Liam,

>>>>> Ikumi Keita <ikumi@HIDDEN> writes:
>> Error context is produced by the TeX engine itself, so in this case it
>> would be the fault of LuaTeX and should likely be reported to its
>> developer list at dev-luatex@HIDDEN .

I reported the issue in LuaTeX developer list[1], but it doesn't seem
promissing.

The core developers don't regard it as a bug basically, thus working
with low priority on it. This issue, if it is ever resolved, will be a
long way off unfortunately.

[1] Thread beginning with
https://mailman.ntg.nl/pipermail/dev-luatex/2022-March/006601.html

Regards,
Ikumi Keita
#StandWithUkraine #StopWarInUkraine




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

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


Received: (at 54200) by debbugs.gnu.org; 9 Mar 2022 13:49:48 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Mar 09 08:49:48 2022
Received: from localhost ([127.0.0.1]:58826 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1nRwhI-0002yU-BF
	for submit <at> debbugs.gnu.org; Wed, 09 Mar 2022 08:49:48 -0500
Received: from smtp1a.inetd.co.jp ([210.129.88.11]:58462)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <ikumi@HIDDEN>) id 1nRwhG-0002yH-IT
 for 54200 <at> debbugs.gnu.org; Wed, 09 Mar 2022 08:49:47 -0500
Received: from localhost (61-24-188-3.rev.home.ne.jp [61.24.188.3])
 by smtp1a.inetd.co.jp (Postfix) with ESMTPA id 968CF2DC;
 Wed,  9 Mar 2022 22:49:44 +0900 (JST)
From: Ikumi Keita <ikumi@HIDDEN>
To: David Kastrup <dak@HIDDEN>
Subject: Re: bug#54200: 13.0.14;
 Preview incorrectly folds math environments with TeX-engine LuaTeX
In-reply-to: <87czivtnvp.fsf@HIDDEN>
References: <874k4iptw8.fsf@HIDDEN> <87k0dev44u.fsf@HIDDEN>
 <86516.1646817420@localhost> <87czivtnvp.fsf@HIDDEN>
Comments: In-reply-to David Kastrup <dak@HIDDEN>
 message dated "Wed, 09 Mar 2022 11:35:06 +0100."
X-Mailer: MH-E 8.6+git; nmh 1.7.1; GNU Emacs 27.2
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-ID: <87022.1646833784.1@localhost>
Date: Wed, 09 Mar 2022 22:49:44 +0900
Message-ID: <87023.1646833784@localhost>
X-Spam-Score: -0.0 (/)
X-Debbugs-Envelope-To: 54200
Cc: liam@HIDDEN, 54200 <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 (-)

>>>>> David Kastrup <dak@HIDDEN> writes:
>> David, can you tell which is responsible for these superfluous two
>> characters, preview.sty or lualatex itself?

> Error context is produced by the TeX engine itself, so in this case it
> would be the fault of LuaTeX and should likely be reported to its
> developer list at dev-luatex@HIDDEN .

I see, thank you!

Regards,
Ikumi Keita
#StandWithUkraine #StopWarInUkraine




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

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


Received: (at 54200) by debbugs.gnu.org; 9 Mar 2022 10:35:41 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Mar 09 05:35:41 2022
Received: from localhost ([127.0.0.1]:58657 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1nRtfQ-0003wE-Qi
	for submit <at> debbugs.gnu.org; Wed, 09 Mar 2022 05:35:40 -0500
Received: from eggs.gnu.org ([209.51.188.92]:56086)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <dak@HIDDEN>) id 1nRtfO-0003vy-8o
 for 54200 <at> debbugs.gnu.org; Wed, 09 Mar 2022 05:35:39 -0500
Received: from [2001:470:142:3::e] (port=33260 helo=fencepost.gnu.org)
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <dak@HIDDEN>)
 id 1nRtfE-0008Vs-7h; Wed, 09 Mar 2022 05:35:31 -0500
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org;
 s=fencepost-gnu-org; h=MIME-Version:In-Reply-To:Date:References:Subject:To:
 From; bh=nnnpw0lcT5laBQh20auZKxaucVu+/4SXiIHC4345CAU=; b=JgrueS3GgN6WaU0+00kg
 lla9RrpNUeLvbBfwJTI9d0owR5DMC0hgH2DdXBScc4apWXfJf/TSr8CW0X5LfTtlZQAilmg27h3iB
 Ff+bubq1jUEVCR2BUcbN9ef8HeClUEdvBmNpk8DGCSESGPM9z/JcEY0f5dNqva5P9PZlO8+6ad38k
 5S7lxKt3V55bx6pu3ytCm2NJjS5JpFmu5SXiPYVxxcU7MFjx+EDinLA0YBatDDAoubi93Udj265wn
 akTV/qflrKULPtCTyFNVcnrHGdM8cL9N0pikiiNzPbua6oUe+VkjV2EyTVXYGRu6VNltnTSp7rC1v
 XZNqDZhsrwv5Rg==;
Received: from dynamic-078-049-115-014.78.49.pool.telefonica.de
 ([78.49.115.14]:54326 helo=lola)
 by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <dak@HIDDEN>)
 id 1nRteu-0003Oo-Rj; Wed, 09 Mar 2022 05:35:26 -0500
From: David Kastrup <dak@HIDDEN>
To: Ikumi Keita <ikumi@HIDDEN>
Subject: Re: bug#54200: 13.0.14; Preview incorrectly folds math environments
 with TeX-engine LuaTeX
References: <874k4iptw8.fsf@HIDDEN> <87k0dev44u.fsf@HIDDEN>
 <86516.1646817420@localhost>
Date: Wed, 09 Mar 2022 11:35:06 +0100
In-Reply-To: <86516.1646817420@localhost> (Ikumi Keita's message of "Wed, 09
 Mar 2022 18:17:00 +0900")
Message-ID: <87czivtnvp.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 54200
Cc: liam@HIDDEN, 54200 <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 (---)

Ikumi Keita <ikumi@HIDDEN> writes:

> Hi Liam and David,
>
> David, can you tell which is responsible for these superfluous two
> characters, preview.sty or lualatex itself?

Error context is produced by the TeX engine itself, so in this case it
would be the fault of LuaTeX and should likely be reported to its
developer list at dev-luatex@HIDDEN .

-- 
David Kastrup




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

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


Received: (at 54200) by debbugs.gnu.org; 9 Mar 2022 09:17:08 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Mar 09 04:17:08 2022
Received: from localhost ([127.0.0.1]:58516 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1nRsRQ-0001pa-EP
	for submit <at> debbugs.gnu.org; Wed, 09 Mar 2022 04:17:08 -0500
Received: from smtp1a.inetd.co.jp ([210.129.88.11]:57814)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <ikumi@HIDDEN>) id 1nRsRN-0001pQ-Lm
 for 54200 <at> debbugs.gnu.org; Wed, 09 Mar 2022 04:17:07 -0500
Received: from localhost (61-24-188-3.rev.home.ne.jp [61.24.188.3])
 by smtp1a.inetd.co.jp (Postfix) with ESMTPA id 24F2C2DC;
 Wed,  9 Mar 2022 18:17:03 +0900 (JST)
From: Ikumi Keita <ikumi@HIDDEN>
To: liam@HIDDEN, David Kastrup <dak@HIDDEN>
Subject: Re: bug#54200: 13.0.14;
 Preview incorrectly folds math environments with TeX-engine LuaTeX
In-reply-to: <87k0dev44u.fsf@HIDDEN>
References: <874k4iptw8.fsf@HIDDEN> <87k0dev44u.fsf@HIDDEN>
Comments: In-reply-to David Kastrup <dak@HIDDEN>
 message dated "Tue, 01 Mar 2022 02:43:45 +0100."
X-Mailer: MH-E 8.6+git; nmh 1.7.1; GNU Emacs 27.2
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-ID: <86515.1646817420.1@localhost>
Content-Transfer-Encoding: quoted-printable
Date: Wed, 09 Mar 2022 18:17:00 +0900
Message-ID: <86516.1646817420@localhost>
X-Spam-Score: -0.0 (/)
X-Debbugs-Envelope-To: 54200
Cc: 54200 <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 (-)

Hi Liam and David,

>>>>> David Kastrup <dak@HIDDEN> writes:
> Liam Hupfer via bug-auctex via Bug reporting list for AUCTeX
> <bug-auctex@HIDDEN> writes:

>> When I run `preview-buffer` on the attached file, I get a preview that
>> looks like "The probability of an initial subsequence of length 3",
>> where multiple math environments are folded into the "3" preview. If I
>> move the point over the preview, it unfolds and I can see the other
>> previews have been generated, but they are not visible due to the
>> incorrect folding. Any ideas?

When I try the provided sample with pdflatex, it works without problem.
However, when I change `TeX-engine' to use lualatex as the original
report of Liam did, the issue reproduces (TeX Live 2021).

It seems that the different outcomes come from subtle difference of the
format of log output:

Output of pdflatex
                                                  |Aligned
l.6 ...lity of an initial subsequence of length \(
                                                  n\) is \(2^{-n}\). For e=
xa...
                                                  |

Output of lualatex
                                                    |Not aligned
l.6 ...bility of an initial subsequence of length \(
                                                  n\) is \(2^{-n}\). For e=
xa...
                                                  |

As can be seen in the above quotes, the log message from lualatex is two
characters long in the first line than pdflatex, which breaks alignment
of the two lines. This hinders the parse by `preview-parse-messages'.
The relavant portion is:
----------------------------------------------------------------------
                                   (and (re-search-forward "\
^l\\.\\([0-9]+\\) \\(\\.\\.\\.\\(?:\\^*\\(?:[89a-f][0-9a-f]\\|[]@-\\_?]\\)=
\\|\
\[0-9a-f]?\\)\\)?\\([^\n\r]*?\\)\r?
\\([^\n\r]*?\\)\\(\\(?:\\^+[89a-f]?\\)?\\.\\.\\.\\)?\r?$" nil t)
                                        (string-to-number (match-string 1)=
)))
                            ;; And a string of the context to search for.
                            string (and line (match-string 3))
                            after-string (and line (buffer-substring
                                                    (+ (match-beginning 4)
                                                       (- (match-end 3)
                                                          (match-beginning=
 0)))
                                                    (match-end 4)))
----------------------------------------------------------------------
This code assumes that the two lines in question are aligned to obtain
`after-string'. I confirmed that it works for lualatex when I modify the
code as:
----------------------------------------------------------------------
                            after-string (and line (buffer-substring
                                                    (+ (match-beginning 4)
						       -2 ;; Ad-hock hack
                                                       (- (match-end 3)
                                                          (match-beginning=
 0)))
                                                    (match-end 4)))
----------------------------------------------------------------------

David, can you tell which is responsible for these superfluous two
characters, preview.sty or lualatex itself?

Regards,
Ikumi Keita
#StandWithUkraine #StopWarInUkraine




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

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


Received: (at 54200) by debbugs.gnu.org; 1 Mar 2022 01:43:56 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Feb 28 20:43:56 2022
Received: from localhost ([127.0.0.1]:35054 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1nOrYS-00043K-7T
	for submit <at> debbugs.gnu.org; Mon, 28 Feb 2022 20:43:56 -0500
Received: from eggs.gnu.org ([209.51.188.92]:52326)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <dak@HIDDEN>) id 1nOrYQ-00042v-QN
 for 54200 <at> debbugs.gnu.org; Mon, 28 Feb 2022 20:43:55 -0500
Received: from [2001:470:142:3::e] (port=52784 helo=fencepost.gnu.org)
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <dak@HIDDEN>)
 id 1nOrYL-0002P9-GR; Mon, 28 Feb 2022 20:43:49 -0500
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org;
 s=fencepost-gnu-org; h=MIME-Version:In-Reply-To:Date:References:Subject:To:
 From; bh=iXuuASyRDsyBV2DNJE6XOpp7LI9fydeLImEUyRPL9u4=; b=YyO32UPSVkiu0TBygOs+
 yGPiMl1dztAad4/m/zRCFIguzHQItiTmjtSGRFeEAWbhq6kB/jDR0fhQQjVsVHttEFqxDlz3hEWNs
 438mGD1UtBQwRR/2/PD8lZmRt8d4nhclPsZkcrs3GaTFOGWVzRpeYRyI0GwirngdigJ6ScPmdLaJN
 eWlma4YdrPl5eooh24MuRKfb10wvKieUdJkuCz+g9gmHKsIOA0V8HagRaYp/rTjOFsjDWfYWMtpbn
 ojVxFVodGbWxKq9TA658Lt4cxEn81nfhcivAKc/dhn5zPGlRPqGP14JGJ1ETbHSxs+qLS4AYAeUFX
 CIoXLVaYEbTWRQ==;
Received: from dynamic-002-244-100-168.2.244.pool.telefonica.de
 ([2.244.100.168]:46702 helo=lola)
 by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <dak@HIDDEN>)
 id 1nOrYK-0003jo-By; Mon, 28 Feb 2022 20:43:49 -0500
From: David Kastrup <dak@HIDDEN>
To: Liam Hupfer via bug-auctex via Bug reporting list for AUCTeX
 <bug-auctex@HIDDEN>
Subject: Re: bug#54200: 13.0.14; Preview incorrectly folds math environments
 with TeX-engine LuaTeX
References: <874k4iptw8.fsf@HIDDEN>
Date: Tue, 01 Mar 2022 02:43:45 +0100
In-Reply-To: <874k4iptw8.fsf@HIDDEN> (Liam Hupfer via bug-auctex via Bug
 reporting list for AUCTeX's message of "Mon, 28 Feb 2022 15:22:33
 -0600")
Message-ID: <87k0dev44u.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 54200
Cc: Liam Hupfer <liam@HIDDEN>, 54200 <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 (---)

Liam Hupfer via bug-auctex via Bug reporting list for AUCTeX
<bug-auctex@HIDDEN> writes:

> When I run `preview-buffer` on the attached file, I get a preview that
> looks like "The probability of an initial subsequence of length 3",
> where multiple math environments are folded into the "3" preview. If I
> move the point over the preview, it unfolds and I can see the other
> previews have been generated, but they are not visible due to the
> incorrect folding. Any ideas?
>
> ./_region_.tex:6: Preview: Snippet 1 started.
> <-><->
>
> l.6 ...bility of an initial subsequence of length \(


[...]

> ./_region_.tex:6: Preview: Snippet 3 started.
> <-><->
>
> l.6 ...bility of an initial subsequence of length \(

Maybe you should not run everything into a single large paragraph with
multiple repetitions of very long phrases?

It's conceivable that one could improve on that particular example by
trying to limit context searches to start after the last completed
search in that line.  But that could spell trouble for including the
same file several times.

-- 
David Kastrup




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

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


Received: (at submit) by debbugs.gnu.org; 1 Mar 2022 01:43:52 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Feb 28 20:43:52 2022
Received: from localhost ([127.0.0.1]:35050 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1nOrYN-000434-Vx
	for submit <at> debbugs.gnu.org; Mon, 28 Feb 2022 20:43:52 -0500
Received: from lists.gnu.org ([209.51.188.17]:35784)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <dak@HIDDEN>) id 1nOrYM-00042w-0y
 for submit <at> debbugs.gnu.org; Mon, 28 Feb 2022 20:43:50 -0500
Received: from eggs.gnu.org ([209.51.188.92]:58026)
 by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <dak@HIDDEN>) id 1nOrYL-0003EP-Qn
 for bug-auctex@HIDDEN; Mon, 28 Feb 2022 20:43:49 -0500
Received: from [2001:470:142:3::e] (port=52784 helo=fencepost.gnu.org)
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <dak@HIDDEN>)
 id 1nOrYL-0002P9-GR; Mon, 28 Feb 2022 20:43:49 -0500
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org;
 s=fencepost-gnu-org; h=MIME-Version:In-Reply-To:Date:References:Subject:To:
 From; bh=iXuuASyRDsyBV2DNJE6XOpp7LI9fydeLImEUyRPL9u4=; b=YyO32UPSVkiu0TBygOs+
 yGPiMl1dztAad4/m/zRCFIguzHQItiTmjtSGRFeEAWbhq6kB/jDR0fhQQjVsVHttEFqxDlz3hEWNs
 438mGD1UtBQwRR/2/PD8lZmRt8d4nhclPsZkcrs3GaTFOGWVzRpeYRyI0GwirngdigJ6ScPmdLaJN
 eWlma4YdrPl5eooh24MuRKfb10wvKieUdJkuCz+g9gmHKsIOA0V8HagRaYp/rTjOFsjDWfYWMtpbn
 ojVxFVodGbWxKq9TA658Lt4cxEn81nfhcivAKc/dhn5zPGlRPqGP14JGJ1ETbHSxs+qLS4AYAeUFX
 CIoXLVaYEbTWRQ==;
Received: from dynamic-002-244-100-168.2.244.pool.telefonica.de
 ([2.244.100.168]:46702 helo=lola)
 by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <dak@HIDDEN>)
 id 1nOrYK-0003jo-By; Mon, 28 Feb 2022 20:43:49 -0500
From: David Kastrup <dak@HIDDEN>
To: Liam Hupfer via bug-auctex via Bug reporting list for AUCTeX
 <bug-auctex@HIDDEN>
Subject: Re: bug#54200: 13.0.14; Preview incorrectly folds math environments
 with TeX-engine LuaTeX
References: <874k4iptw8.fsf@HIDDEN>
Date: Tue, 01 Mar 2022 02:43:45 +0100
In-Reply-To: <874k4iptw8.fsf@HIDDEN> (Liam Hupfer via bug-auctex via Bug
 reporting list for AUCTeX's message of "Mon, 28 Feb 2022 15:22:33
 -0600")
Message-ID: <87k0dev44u.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: submit
Cc: Liam Hupfer <liam@HIDDEN>, 54200 <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 (---)

Liam Hupfer via bug-auctex via Bug reporting list for AUCTeX
<bug-auctex@HIDDEN> writes:

> When I run `preview-buffer` on the attached file, I get a preview that
> looks like "The probability of an initial subsequence of length 3",
> where multiple math environments are folded into the "3" preview. If I
> move the point over the preview, it unfolds and I can see the other
> previews have been generated, but they are not visible due to the
> incorrect folding. Any ideas?
>
> ./_region_.tex:6: Preview: Snippet 1 started.
> <-><->
>
> l.6 ...bility of an initial subsequence of length \(


[...]

> ./_region_.tex:6: Preview: Snippet 3 started.
> <-><->
>
> l.6 ...bility of an initial subsequence of length \(

Maybe you should not run everything into a single large paragraph with
multiple repetitions of very long phrases?

It's conceivable that one could improve on that particular example by
trying to limit context searches to start after the last completed
search in that line.  But that could spell trouble for including the
same file several times.

-- 
David Kastrup




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

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


Received: (at submit) by debbugs.gnu.org; 1 Mar 2022 00:18:30 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Feb 28 19:18:30 2022
Received: from localhost ([127.0.0.1]:34990 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1nOqDl-0001tC-FA
	for submit <at> debbugs.gnu.org; Mon, 28 Feb 2022 19:18:30 -0500
Received: from lists.gnu.org ([209.51.188.17]:49558)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <liam@HIDDEN>) id 1nOnUw-00061K-Du
 for submit <at> debbugs.gnu.org; Mon, 28 Feb 2022 16:24:04 -0500
Received: from eggs.gnu.org ([209.51.188.92]:35286)
 by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <liam@HIDDEN>) id 1nOnUw-00051R-8E
 for bug-auctex@HIDDEN; Mon, 28 Feb 2022 16:24:02 -0500
Received: from out0.migadu.com ([94.23.1.103]:18040)
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <liam@HIDDEN>) id 1nOnUt-0002HV-D0
 for bug-auctex@HIDDEN; Mon, 28 Feb 2022 16:24:01 -0500
X-Report-Abuse: Please report any abuse attempt to abuse@HIDDEN and
 include these headers.
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=hpfr.net; s=key1;
 t=1646083434;
 h=from:from:reply-to:subject:subject:date:date:message-id:message-id:
 to:to:cc:mime-version:mime-version:content-type:content-type;
 bh=t+P39vLYZjypX3TOH79701VkkelguzLKrnsve/jouMA=;
 b=iQStWFvaWj3lKPlpaLj1Fl7wCIrjE+7PEDOtJHrNVY/1dnrlG/8ZZuwrq0x3DkGMKiTRD4
 2HbkIu+sQz+KVQx9fRF8rlOSffVZVA3gSXk/zsvi7wuZ0CYC1JX6JVw0cZtcn2qfYsnS1P
 InFRo7Hw0Xc9f+P/mthilzVN0MTfRBBz+PCmrwy2ya21bSvjdATRsWTXYvg6P08UbK5QbY
 t6pdiZOfPumzf/RdmlK3WxigNIY3cDaU1K4gdMI6CS/ZNP2+4POKFdEIR1NGeMksaL9omh
 6UjjO2AD7iqHIt6wU/xRoLzIMGs+22NDhkChrb0/exAuwd1Q7747J0VgkVoKdw==
From: Liam Hupfer <liam@HIDDEN>
To: bug-auctex@HIDDEN
Subject: 13.0.14; Preview incorrectly folds math environments with
 TeX-engine LuaTeX
Date: Mon, 28 Feb 2022 15:22:33 -0600
Message-ID: <874k4iptw8.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="=-=-="
X-Migadu-Flow: FLOW_OUT
X-Migadu-Auth-User: hpfr.net
Received-SPF: pass client-ip=94.23.1.103; envelope-from=liam@HIDDEN;
 helo=out0.migadu.com
X-Spam_score_int: -27
X-Spam_score: -2.8
X-Spam_bar: --
X-Spam_report: (-2.8 / 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_LOW=-0.7, SPF_HELO_NONE=0.001, SPF_PASS=-0.001,
 T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no
X-Spam_action: no action
X-Spam-Score: -1.4 (-)
X-Debbugs-Envelope-To: submit
X-Mailman-Approved-At: Mon, 28 Feb 2022 19:18:28 -0500
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: -2.4 (--)

--=-=-=
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable


When I run `preview-buffer` on the attached file, I get a preview that
looks like "The probability of an initial subsequence of length 3",
where multiple math environments are folded into the "3" preview. If I
move the point over the preview, it unfolds and I can see the other
previews have been generated, but they are not visible due to the
incorrect folding. Any ideas?

=E2=80=94Liam

Emacs  : GNU Emacs 28.0.90 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24=
.31, cairo version 1.16.0)
Package: 13.0.14

Run buffer contents:

Running `Preview-LaTeX' on `~/tmp/test-org-auctex/_region_' with ``lualatex=
 --jobname=3D_region_  -file-line-error   --synctex=3D1 "\nonstopmode\nofil=
es\PassOptionsToPackage{active,tightpage,auctex}{preview}\AtBeginDocument{\=
ifx\ifPreview\undefined\RequirePackage[displaymath,floats,graphics,textmath=
,sections,footnotes]{preview}[2004/11/05]\fi}" "\input" "\detokenize{" _reg=
ion_.tex "}"''
This is LuaHBTeX, Version 1.13.0 (Web2C 2021/NixOS.org)
 restricted system commands enabled.
LaTeX2e <2021-11-15> patch level 1
L3 programming layer <2021-11-22>
No auxiliary output files.

(./_region_.tex  !name(test-auctex-preview.tex) (/nix/store/1mygi6rjbjrf6jg=
944wbclfy64bl0pfi-texlive-combined-2021/share/texmf/tex/latex/base/article.=
cls
Document Class: article 2021/10/04 v1.4n Standard LaTeX document class
(/nix/store/1mygi6rjbjrf6jg944wbclfy64bl0pfi-texlive-combined-2021/share/te=
xmf/tex/latex/base/size10.clo
luaotfload | db : Reload initiated (formats: otf,ttf,ttc); reason: File not=
 found: "lmroman10-regular".)) (/nix/store/1mygi6rjbjrf6jg944wbclfy64bl0pfi=
-texlive-combined-2021/share/texmf/tex/latex/l3backend/l3backend-luatex.def)
No file _region_.aux.
(/nix/store/1mygi6rjbjrf6jg944wbclfy64bl0pfi-texlive-combined-2021/share/te=
xmf/tex/latex/base/ts1cmr.fd) (/nix/store/1mygi6rjbjrf6jg944wbclfy64bl0pfi-=
texlive-combined-2021/share/texmf/tex/latex/preview/preview.sty (/nix/store=
/1mygi6rjbjrf6jg944wbclfy64bl0pfi-texlive-combined-2021/share/texmf/tex/gen=
eric/luatex85/luatex85.sty) (/nix/store/1mygi6rjbjrf6jg944wbclfy64bl0pfi-te=
xlive-combined-2021/share/texmf/tex/latex/preview/prtightpage.def) (/nix/st=
ore/1mygi6rjbjrf6jg944wbclfy64bl0pfi-texlive-combined-2021/share/texmf/tex/=
latex/preview/prauctex.def
No auxiliary output files.


(/nix/store/1mygi6rjbjrf6jg944wbclfy64bl0pfi-texlive-combined-2021/share/te=
xmf/tex/latex/preview/prauctex.cfg)) (/nix/store/1mygi6rjbjrf6jg944wbclfy64=
bl0pfi-texlive-combined-2021/share/texmf/tex/latex/preview/prfootnotes.def)
Preview: Fontsize 10pt
Preview: PDFoutput 1
)  !name(test-auctex-preview.tex) !offset(-3)
./_region_.tex:6: Preview: Snippet 1 started.
<-><->

l.6 ...bility of an initial subsequence of length \(
                                                  n\) is \(2^{-n}\). For ex=
a...
Preview: Tightpage -32891 -32891 32891 32891
./_region_.tex:6: Preview: Snippet 1 ended.(282168+0x393370).
<-><->

l.6 ...ity of an initial subsequence of length \(n\)
                                                   is \(2^{-n}\). For examp=
l...
[1{/nix/store/1mygi6rjbjrf6jg944wbclfy64bl0pfi-texlive-combined-2021/share/=
texmf-var/fonts/map/pdftex/updmap/pdftex.map}]
./_region_.tex:6: Preview: Snippet 2 started.
<-><->

l.6 ... an initial subsequence of length \(n\) is \(
                                                  2^{-n}\). For example, th=
e...
./_region_.tex:6: Preview: Snippet 2 ended.(521815+0x1094016).
<-><->

l.6 ...ial subsequence of length \(n\) is \(2^{-n}\)
                                                  . For example, the probab=
i...
[2]
./_region_.tex:6: Preview: Snippet 3 started.
<-><->

l.6 ...bility of an initial subsequence of length \(
                                                  3\)
./_region_.tex:6: Preview: Snippet 3 ended.(422343+0x327681).
<-><->

l.6 ...ity of an initial subsequence of length \(3\)

[3])
(see the transcript file for additional information)
 406 words of node memory still in use:
   3 hlist, 1 vlist, 1 rule, 2 glue, 3 kern, 1 glyph, 4 attribute, 48 glue_=
spec, 4 attribute_list, 1 write nodes
   avail lists: 2:28,3:5,4:2,5:25,6:3,7:151,8:3,9:10,10:1,11:14
</nix/store/1mygi6rjbjrf6jg944wbclfy64bl0pfi-texlive-combined-2021/share/te=
xmf/fonts/type1/public/amsfonts/cm/cmmi10.pfb></nix/store/1mygi6rjbjrf6jg94=
4wbclfy64bl0pfi-texlive-combined-2021/share/texmf/fonts/type1/public/amsfon=
ts/cm/cmmi7.pfb></nix/store/1mygi6rjbjrf6jg944wbclfy64bl0pfi-texlive-combin=
ed-2021/share/texmf/fonts/type1/public/amsfonts/cm/cmr10.pfb></nix/store/1m=
ygi6rjbjrf6jg944wbclfy64bl0pfi-texlive-combined-2021/share/texmf/fonts/type=
1/public/amsfonts/cm/cmsy7.pfb>
Output written on _region_.pdf (3 pages, 30885 bytes).
SyncTeX written on _region_.synctex.gz.
Transcript written on _region_.log.

TeX Output exited as expected with code 1 at Mon Feb 28 15:13:57
Running `Preview-PDF2DSC' with ``pdf2dsc _region_.pdf _region_.prv/tmp05Cdo=
K/preview.dsc''

Preview-PDF2DSC finished at Mon Feb 28 15:13:57
Running `Preview-Ghostscript' with ``/etc/profiles/per-user/lh/bin/rungs -s=
OutputFile\=3D_region_.prv/tmp05CdoK/pr1-\%d.png -q -dDELAYSAFER -dNOPAUSE =
-DNOPLATFONTS -dPrinted -dTextAlphaBits\=3D4 -dGraphicsAlphaBits\=3D4 -sDEV=
ICE\=3Dpng16m -r171.762x170.688 -dDELAYBIND''

Preview-Ghostscript finished at Mon Feb 28 15:13:58


current state:
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
(setq
 AUCTeX-version "13.0.14"
 LaTeX-command-style '(("" "%(PDF)%(latex) %(file-line-error) %(extraopts) =
%(output-dir) %S%(PDFout)"))
 image-types '(svg png gif tiff jpeg xpm xbm pbm)
 preview-image-type 'png
 preview-image-creators '((dvipng (open preview-gs-open preview-dvipng-proc=
ess-setup) (place preview-gs-place) (close preview-dvipng-close))
                          (png (open preview-gs-open) (place preview-gs-pla=
ce) (close preview-gs-close))
                          (jpeg (open preview-gs-open) (place preview-gs-pl=
ace) (close preview-gs-close))
                          (pnm (open preview-gs-open) (place preview-gs-pla=
ce) (close preview-gs-close))
                          (tiff (open preview-gs-open) (place preview-gs-pl=
ace) (close preview-gs-close)))
 preview-dvipng-image-type 'png
 preview-dvipng-command "dvipng -picky -noghostscript %d -o %m/prev%%03d.pn=
g"
 preview-pdf2dsc-command "pdf2dsc %(O?pdf) %m/preview.dsc"
 preview-gs-command "/etc/profiles/per-user/lh/bin/rungs"
 preview-gs-options '("-q" "-dDELAYSAFER" "-dNOPAUSE" "-DNOPLATFONTS" "-dPr=
inted" "-dTextAlphaBits=3D4" "-dGraphicsAlphaBits=3D4")
 preview-gs-image-type-alist '((png png "-sDEVICE=3Dpng16m") (dvipng png "-=
sDEVICE=3Dpng16m") (jpeg jpeg "-sDEVICE=3Djpeg") (pnm pbm "-sDEVICE=3Dpnmra=
w")
                               (tiff tiff "-sDEVICE=3Dtiff12nc"))
 preview-fast-conversion t
 preview-prefer-TeX-bb nil
 preview-dvips-command "dvips -Pwww -i -E %d -o %m/preview.000"
 preview-fast-dvips-command "dvips -Pwww %d -o %m/preview.ps"
 preview-scale-function '(closure (t) nil (* (/ 10.0 (preview-document-pt))=
 preview-scale))
 preview-LaTeX-command '("%`%l \"\\nonstopmode\\nofiles\\PassOptionsToPacka=
ge{" ("," . preview-required-option-list)
                         "}{preview}\\AtBeginDocument{\\ifx\\ifPreview\\und=
efined" preview-default-preamble
                         "\\fi}\"%' \"\\detokenize{\" %(t-filename-only) \"=
}\"")
 preview-required-option-list '("active" "tightpage" "auctex" (preview-pres=
erve-counters "counters"))
 preview-preserve-counters nil
 preview-default-option-list '("displaymath" "floats" "graphics" "textmath"=
 "sections" "footnotes")
 preview-default-preamble '("\\RequirePackage[" ("," . preview-default-opti=
on-list) "]{preview}[2004/11/05]")
 preview-LaTeX-command-replacements nil
 preview-dump-replacements '(preview-LaTeX-command-replacements
                             ("\\`\\([^ ]+\\)\\(?: +\\(?:\\(--?kanji[=3D ][=
^ ]+\\)\\|\\(--?output-directory[=3D ][^ ]+\\)\\|-\\(?:[^ \\\"]\\|\\\\.\\|\=
"[^\"]*\"\\)*\\)\\)*\\(.*\\)\\'" "\\1 -ini \\2 \\3 -interaction=3Dnonstopmo=
de \"&\\1\" " preview-format-name ".ini \\4")
                             )
 preview-undump-replacements '(("\\`\\([^ ]+\\)\\(?: +\\(?:\\(--?kanji[=3D =
][^ ]+\\)\\|\\(--?output-directory[=3D ][^ ]+\\)\\|-\\(?:[^ \\\"]\\|\\\\.\\=
|\"[^\"]*\"\\)*\\)\\)*.* \"\\\\input\" \"\\\\detokenize{\" \\(.*\\) \"}\"\\=
'" "\\1 \\2 \\3 -interaction=3Dnonstopmode -file-line-error " preview-forma=
t-name " \"/AUCTEXINPUT{\" \\4 \"}\"")
                               )
 preview-auto-cache-preamble nil
 preview-TeX-style-dir "/home/lh/.config/emacs/.local/straight/build-28.0.9=
0/auctex/latex"
 )

Output from running `/etc/profiles/per-user/lh/bin/rungs -h':
GPL Ghostscript 9.55.0 (2021-09-27)
Copyright (C) 2021 Artifex Software, Inc.  All rights reserved.
Usage: gs [switches] [file1.ps file2.ps ...]
Most frequently used switches: (you can use # in place of =3D)
 -dNOPAUSE           no pause after page   | -q       `quiet', fewer messag=
es
 -g<width>x<height>  page size in pixels   | -r<res>  pixels/inch resolution
 -sDEVICE=3D<devname>  select device         | -dBATCH  exit after last file
 -sOutputFile=3D<file> select output file: - for stdout, |command for pipe,
                                         embed %d or %ld for page #
Input formats: PostScript PostScriptLevel1 PostScriptLevel2 PostScriptLevel=
3 PDF
Default output device: x11alpha
Available devices:
   alc1900 alc2000 alc4000 alc4100 alc8500 alc8600 alc9100 ap3250 appledmp
   atx23 atx24 atx38 bbox bit bitcmyk bitrgb bitrgbtags bj10e bj10v bj10vh
   bj200 bjc600 bjc800 bjc880j bjccmyk bjccolor bjcgray bjcmono bmp16 bmp16m
   bmp256 bmp32b bmpgray bmpmono bmpsep1 bmpsep8 ccr cdeskjet cdj1600 cdj500
   cdj550 cdj670 cdj850 cdj880 cdj890 cdj970 cdjcolor cdjmono cdnj500 cfax
   chp2200 cif cljet5 cljet5c cljet5pr coslw2p coslwxl cups declj250 deskjet
   devicen dfaxhigh dfaxlow display dj505j djet500 djet500c dl2100 dnj650c
   docxwrite epl2050 epl2050p epl2120 epl2500 epl2750 epl5800 epl5900
   epl6100 epl6200 eplcolor eplmono eps2write eps9high eps9mid epson epsonc
   escp escpage faxg3 faxg32d faxg4 fmlbp fmpr fpng fs600 gdi hl1240 hl1250
   hl7x0 hpdj1120c hpdj310 hpdj320 hpdj340 hpdj400 hpdj500 hpdj500c hpdj510
   hpdj520 hpdj540 hpdj550c hpdj560c hpdj600 hpdj660c hpdj670c hpdj680c
   hpdj690c hpdj850c hpdj855c hpdj870c hpdj890c hpdjplus hpdjportable ibmpro
   ijs imagen inferno ink_cov inkcov itk24i itk38 iwhi iwlo iwlq jetp3852
   jj100 jpeg jpegcmyk jpeggray la50 la70 la75 la75plus laserjet lbp310
   lbp320 lbp8 lex2050 lex3200 lex5700 lex7000 lips2p lips3 lips4 lips4v
   lj250 lj3100sw lj4dith lj4dithp lj5gray lj5mono ljet2p ljet3 ljet3d ljet4
   ljet4d ljet4pjl ljetplus ln03 lp1800 lp1900 lp2000 lp2200 lp2400 lp2500
   lp2563 lp3000c lp7500 lp7700 lp7900 lp8000 lp8000c lp8100 lp8200c lp8300c
   lp8300f lp8400f lp8500c lp8600 lp8600f lp8700 lp8800c lp8900 lp9000b
   lp9000c lp9100 lp9200b lp9200c lp9300 lp9400 lp9500c lp9600 lp9600s
   lp9800c lps4500 lps6500 lq850 lxm3200 lxm5700m m8510 md1xMono md2k
   md50Eco md50Mono md5k mgr4 mgr8 mgrgray2 mgrgray4 mgrgray8 mgrmono miff24
   mj500c mj6000c mj700v2c mj8000c ml600 necp6 npdl nullpage oce9050 oki182
   oki4w okiibm oprp opvp paintjet pam pamcmyk32 pamcmyk4 pbm pbmraw pcl3
   pclm pcx16 pcx24b pcx256 pcxcmyk pcxgray pcxmono pdfimage24 pdfimage32
   pdfimage8 pdfwrite pdfwrite pdfwrite pgm pgmraw pgnm pgnmraw photoex
   picty180 pj pjetxl pjxl pjxl300 pkm pkmraw pksm pksmraw plan plan9bm
   planc plang plank planm plib plibc plibg plibk plibm png16 png16m png256
   png48 pngalpha pnggray pngmono pngmonod pnm pnmraw ppm ppmraw pr1000
   pr1000_4 pr150 pr201 ps2write psdcmyk psdcmyk16 psdcmykog psdrgb psdrgb16
   pwgraster pxlcolor pxlmono r4081 rinkj rpdl samsunggdi sj48 spotcmyk
   st800 stcolor t4693d2 t4693d4 t4693d8 tek4696 tiff12nc tiff24nc tiff32nc
   tiff48nc tiff64nc tiffcrle tiffg3 tiffg32d tiffg4 tiffgray tifflzw
   tiffpack tiffscaled tiffscaled24 tiffscaled32 tiffscaled4 tiffscaled8
   tiffsep tiffsep1 txtwrite uniprint x11 x11alpha x11cmyk x11cmyk2 x11cmyk4
   x11cmyk8 x11gray2 x11gray4 x11mono xcf xes xpswrite
Search path:
   %rom%Resource/Init/ : %rom%lib/ :
   /nix/store/hycn9y3nwgncnadsvdraj6ljsxydh897-ghostscript-9.55.0/share/gho=
stscript/9.55.0/Resource/Init :
   /nix/store/hycn9y3nwgncnadsvdraj6ljsxydh897-ghostscript-9.55.0/share/gho=
stscript/9.55.0/lib :
   /nix/store/hycn9y3nwgncnadsvdraj6ljsxydh897-ghostscript-9.55.0/share/gho=
stscript/9.55.0/Resource/Font :
   /nix/store/hycn9y3nwgncnadsvdraj6ljsxydh897-ghostscript-9.55.0/share/gho=
stscript/fonts :
   /nix/store/hycn9y3nwgncnadsvdraj6ljsxydh897-ghostscript-9.55.0/share/fon=
ts/default/ghostscript :
   /nix/store/hycn9y3nwgncnadsvdraj6ljsxydh897-ghostscript-9.55.0/share/fon=
ts/default/Type1 :
   /nix/store/hycn9y3nwgncnadsvdraj6ljsxydh897-ghostscript-9.55.0/share/fon=
ts/default/TrueType :
   /usr/lib/DPS/outline/base : /usr/openwin/lib/X11/fonts/Type1 :
   /usr/openwin/lib/X11/fonts/TrueType :
   /nix/store/ym9b1xyq8l3d0xdpxv0mcayqgj94kk8w-cups-2.4.0/share/cups/fonts
Ghostscript is also using fontconfig to search for font files
Initialization files are compiled into the executable.
For more information, see /no-path-to-docs/Use.htm.
Please report bugs to bugs.ghostscript.com.


--=-=-=
Content-Type: application/x-tex
Content-Disposition: attachment; filename=test-auctex-preview.tex
Content-Transfer-Encoding: base64

XGRvY3VtZW50Y2xhc3N7YXJ0aWNsZX0KXGJlZ2lue2RvY3VtZW50fQpUaGUgcHJvYmFiaWxpdHkg
b2YgYW4gaW5pdGlhbCBzdWJzZXF1ZW5jZSBvZiBsZW5ndGggXChuXCkgaXMgXCgyXnstbn1cKS4g
Rm9yIGV4YW1wbGUsIHRoZSBwcm9iYWJpbGl0eSBvZiBhbiBpbml0aWFsIHN1YnNlcXVlbmNlIG9m
IGxlbmd0aCBcKDNcKQpcZW5ke2RvY3VtZW50fQo=
--=-=-=--




Acknowledgement sent to Liam Hupfer <liam@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-auctex@HIDDEN. Full text available.
Report forwarded to bug-auctex@HIDDEN:
bug#54200; 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: Thu, 7 Mar 2024 08:45:02 UTC

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