bug-auctex
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Bug-AUCTeX] preview oddity when "merging" inline formulas...


From: David Kastrup
Subject: Re: [Bug-AUCTeX] preview oddity when "merging" inline formulas...
Date: Mon, 11 Jul 2005 21:40:09 +0200
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux)

Evil Boris <address@hidden> writes:

> In a LaTeX document, write something like
>
>    and this depends on $x$ and $y$ MORE TEXT MORE TEXT MORE TEXT MORE
>    TEXT MORE TEXT MORE TEXT MORE TEXT MORE TEXT
>
> preview, say using C-c C-p C-d (or C-c C-p C-p).  Now move the cursor
> to the $ just after x and type C-d a few times and then a comma,
> obtaining
>
>    and this depends on $x, y$ MORE TEXT MORE TEXT MORE TEXT MORE
>    TEXT MORE TEXT MORE TEXT MORE TEXT MORE TEXT
>
> with the cursor someplace around the comma.  Notice that there are two
> preview-generated pictures around [can't really tell what they are
> supposed to represent, too small for my eye sight], which is annoying
> but understandable.  If I type C-c C-p C-p now, everything after the
> $x,y$ disappears from the display!  Very disconcerting, especially the
> first time it happens.  C-c C-p C-d makes everything peachy again.
>
> That's recent snapshot AUCTeX (but noticed the same problem a few
> months ago) and CVS Emacs.

"Merging" previews is not really a sensible operation.  What you end
up with is regenerating the only one, crippled preview.  The results
are that the math environment is incomplete, and TeX looks beyond the
actually cut region for fixing it.

Now we _do_ have the problem that an error occuring outside of the
actual region will not get correlated correctly.  This is pretty
involved and a result of AUCTeX's region processing.  We won't fix
this before the next release.

However, it might be a useful idea to regenerate butting edited
previews together.  Does the following patch lead to more satisfactory
behavior for you?


Attachment: txtXumFTVMDCE.txt
Description: Text Data


-- 
David Kastrup, Kriemhildstr. 15, 44793 Bochum

reply via email to

[Prev in Thread] Current Thread [Next in Thread]