> I largely agree with you, and I am happy for finer control over the
> behaviour to be added.

Glad to hear we're on the same page now.

> The new mode of operation I was referring to is when
> `preview-display-style` is set to 'preview (so that previews away from
> point are displayed) and `preview-reveal-display` is `buframe`.
>
> Presumably the previews away from the cursor are being shown using the
> 'display' property of the overlay (as is currently done). When the
> cursor opens the preview, I think you are proposing that the> TeX
> source is displayed in the buffer (by setting 'display to nil) while
> the preview *moves* to a buframe.

This last sentence indeed captures the intended user-facing behavior,
which seems like the amalgam of two features that already exist:

- In traditional preview, when point enters a preview, the preview
  becomes invisible (or the TeX symbol takes its place).

- In preview-point, when point enters a preview, the preview is
  displayed in a buframe.

I might be overlooking some nuance, but I had hoped these two apparently
orthogonal features could be combined fairly easily.

> When the cursor moves out of the source, the preview moves back into
> the buffer as a 'display property, correct?  If so, don't you think
> previews moving between buframe and main buffer would be jarring?

This is a valid concern, and it might take some experimentation to see
how it feels.  I was hoping it'd be no more jarring than what happens in
traditional preview, where the preview becomes invisible and then
visible again.

> I am also still unclear what happens in this case when the TeX source
> is modified. Does the preview return back to the buffer as a 'display
> property or does the TeX source remain visible (I'd guess the latter
> is more reasonable)?

I was thinking we could follow the current "traditional preview"
behavior: when the TeX source is modified, the preview is disabled and
never shown again, except when preview-leave-open-previews-visible is
non-nil, in which case the preview remains visible via the 'display
property (assuming, of course, that preview-display-style is 'preview).

Thanks, best,

Paul



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

Reply via email to