GNU bug report logs - #62445
13.1.10; bug in preview-region applied to repeated math environments

Previous Next

Package: auctex;

Reported by: Paul Nelson <ultrono <at> gmail.com>

Date: Sat, 25 Mar 2023 16:16:01 UTC

Severity: normal

Found in version 13.1.10

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

Bug is archived. No further changes may be made.

Full log


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

From: David Kastrup <dak <at> gnu.org>
To: Paul Nelson <ultrono <at> gmail.com>
Cc: 62445 <at> debbugs.gnu.org
Subject: Re: bug#62445: 13.1.10; bug in preview-region applied to repeated
 math environments
Date: Sat, 25 Mar 2023 17:41:02 +0100
Paul Nelson <ultrono <at> gmail.com> writes:

> Emacs  : GNU Emacs 29.0.50 (build 3, x86_64-apple-darwin21.6.0, NS
> appkit-2113.60 Version 12.6 (Build 21G115))
>  of 2022-11-06
> Package: 13.1.10
>
> Take the following document:
>
> #+begin_src latex
> \documentclass{amsart}
> \begin{document}
>  $x$ $x$
> \end{document}
> #+end_src
>
>
> Run ~preview-region~ on the region consisting of the first $x$.  This works
> as expected.
>
> Next, run ~preview-region~ on the region consisting of just the second
> $x$.  This does not preview the second $x$.  Instead, it refreshes the
> overlay on the first $x$.
>
> The relevant output:
>
> #+begin_quote
> ./_region_.tex:5: Preview: Snippet 1 started.
> <-><->
>
> l.5 $
>      x$
> Preview: Tightpage -32891 -32891 32891 32891
> ./_region_.tex:5: Preview: Snippet 1 ended.(282168+0x374556).
> <-><->
>
> l.5 $x$
>
> #+end_quote
>
>
> The issue here is that there's not enough context for
> ~preview-parse-messages~ to determine which $x$ to overlay.

I'd just add -file-line-error to the options you are calling TeX with.
That makes for more reliable error message interpretation.

-- 
David Kastrup




This bug report was last modified 1 year and 99 days ago.

Previous Next


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