Hi David,
On 150820 Thu 21:19, David Kastrup wrote:
Several other options come to mind, like a mode where mouse-over removes the preview.
I've set preview-auto-reveal to t, and it has a similar effect: single left-click open the preview, which closes automatically as soon as I left-click somewhere else. Right-click still leaves it open. The two clicks complement each other nicely.
Or two parallel (synchronized?) windows where one is without previews (that's only possible on Emacs rather than XEmacs since one can restrict overlays to show only on a particular window).
That's a brilliant idea, useful for other purposes too! Now I have an indirect buffer on the side, where the previews are inactivated.
On Emacs, I think that you could use (preview-open-overlays (overlays-in BEG END)) Preview overlays should have a non-nil state of the 'preview-state property, and there also is preview-toggle is a compiled Lisp function in ‘prv-emacs.el’. (preview-toggle OV &optional ARG EVENT) Toggle visibility of preview overlay OV. ARG can be one of the following: t displays the overlay, nil displays the underlying text, and 'toggle toggles. If EVENT is given, it indicates the window where the event occured, either by being a mouse event or by directly being the window in question. This may be used for cursor restoration purposes. So filtering the output of overlays-at (possibly given window-start and window-end ?) for preview overlays and then calling preview-toggle with some settings on all of them should be reasonably simple.
Thank you, I'll give that a try! Cheers, J _______________________________________________ auctex mailing list auctex@gnu.org https://lists.gnu.org/mailman/listinfo/auctex