Evil Boris <[EMAIL PROTECTED]> writes:

> David Kastrup <[EMAIL PROTECTED]> writes:
>
> Aha!  I had not realized (having not looked at the code, ever) that
> a preview is attached to the entire math mode string (a portion of
> the buffer, more precisely) and is kept around even if the string is
> modified.  Would it be too difficult to simply catch modifications
> of the string and nuke the preview?  I would find this a more
> logical behavior, as a user.

It has the disadvantage that one of the most common ways of working
with previews is doing small edits and regenerating the preview.

>>> A secondary issue is that there are those slightly annoying pictures
>>> attached to "opened" math expressions --- in this case the second
>>> one, that was attached to $y$ refuses to go away, even though it
>>> looks to me like I have have deleted character (namely the $ in
>>> front of "y") to which it seems to be attached.
>>
>> Well, you can use C-c C-p C-c C-p to remove the preview, or you can
>> use mouse-3 on the "annoying picture" to remove it.
>
> Sorry, I meant the icon that lives at the beginning of the unfolded
> previewed math expression.  Forgot the appropriate term (can never
> remember the right lingo for the right context, sorry...).

I was aware of that.

> I just was pointing out that in my opinion a natural behavior from a
> users point of view would be for the icon to disappear once one
> (C-d)s over the characters surrounding the place where it appears to
> be located in the buffer.

I am not sure that crafting a consistent behavior on that premise
would be easy.

> Thanks for quick response.  I am just playing with preview, trying
> to see if it is useful to me---worked for years w/o previewing
> except in reading/proofreading stage, but seem to be constantly
> invoking an external previewer (via AUCTeX)...  Anything that slows
> things down too much or requires too much interaction to distract me
> from editing the manuscript is not worth it, for me.

Well, if you decide against previews: the newer AUCTeX versions
support source specials quite well, and those make for a more
convenient coupling of previewer and editor.

Still, I like the previews much better.

-- 
David Kastrup, Kriemhildstr. 15, 44793 Bochum


_______________________________________________
bug-auctex mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-auctex

Reply via email to