GNU bug report logs - #79462
14.1.0; Set correct TeX-sentinel-function before starting processes.

Previous Next

Package: auctex;

Reported by: Al Haji-Ali <abdo.haji.ali <at> gmail.com>

Date: Wed, 17 Sep 2025 07:40:02 UTC

Severity: normal

Found in version 14.1.0

Done: Arash Esbati <arash <at> gnu.org>

Full log


Message #8 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Arash Esbati <arash <at> gnu.org>
To: Al Haji-Ali <abdo.haji.ali <at> gmail.com>, "Ikumi Keita" <ikumi <at> ikumi.que.jp>
Cc: bug-auctex <at> gnu.org
Subject: Re: 14.1.0; Set correct TeX-sentinel-function before starting
 processes.
Date: Wed, 17 Sep 2025 11:38:32 +0200
Al Haji-Ali <abdo.haji.ali <at> gmail.com> writes:

> This is a follow-up bug-report/patch from:
> https://lists.gnu.org/archive/html/auctex-devel/2025-08/msg00026.html
>
> Previously, preview was setting the TeX-sentinel-function to temporary
> lambda functions inside `preview-start-*` functions which just outputs
> a message. This value is overwritten by functions that call
> `preview-start-*` to a correct sentinel. In most cases, this is
> harmless as the original sentinel is never called. However,
> preview-start-* also has a `sit-for` call which causes timers to be
> processed, and which may call `accept-process-output` causing the
> "wrong" temporary sentinel to be called.
> I faced this issue when developing preview-point (discussed above) and
> I am submitting this patch which simply sets the correct sentinel
> before calling preview-start-*.

Thanks, LGTM.

@Keita: Do you have any comments?  Otherwise I'll install this change.

Best, Arash




This bug report was last modified 1 day ago.

Previous Next


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