Hi Al,

I had another thought about how preview-point could be structured.  It
currently combines two somewhat orthogonal features:

(a) Previews away from point are no longer displayed at all.

(b) We gain further flexibility in how we can display the preview at
point -- before the TeX source, after the TeX source, or in a buframe.

I think (b) makes sense and would be useful, independent of (a).
Conceptually, we could view this as a more flexible form of
preview-leave-open-previews-visible, which currently only allows the
preview to be displayed before the TeX source.

One way to decouple (a) and (b) would be to:

- Control (a) via a new defcustom, preview-hide-away-from-point.

- Control (b) by allowing preview-leave-open-previews-visible to take
  new values (e.g., 'after, 'buframe).  That setting would then
  play the role currently played by preview-point.

To display previews at point with buframe, one would do

  (setopt preview-leave-open-previews-visible 'buframe)

To recover the current preview-point behavior, one would additionally do

  (setopt preview-hide-away-from-point t)

WDYT?  Does it reasonable to you to separate these features?

Thanks, best,

Paul



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

Reply via email to