Hello Paul,

I am also coming back to this now.

On 07/06/2026, Paul D. Nelson wrote:
> if I type
>
>   Let \(x
>
> inside an otherwise empty document environment, a preview generates.
> When I then type the closing
>
>   \)
>
> the *.../_region_ output* buffer pops up with the message:
>
>   LaTeX: LaTeX found no preview images
This didn't happen with me on a clean install, can you provide a
reproduction recipe?

The popping up of the region output buffer is an issue that happened to
me a few times and I am trying to trace it/reproduce it reliably. It
should be protected against using `preview-silent-errors`.

> I think one issue here is that texmathp doesn't return enough
> information to determine whether there is a complete previewable object
> at point.

My thinking is that, by default, preview-automatic should effectively
call preview-at-point which itself would handle figuring out the correct
way/region to preview (I actually call `preview-region` using
`preview-next-border` which is the same logic). Currently, this would
regenerate the current preview if there's one, or call preview on the
whole document otherwise. This can be made more efficient of course
using the logic from your preview-auto, and it is precisely the reason I
made it possible for `preview-automatic-function` to return `(BEGIN
. END)` to restrict the preview region.

FYI, I've been using preview-automatic for a while and there are a
couple of issues that are bugging me and I plan to fix in the upcoming weeks:

- If a preview is being automatically generated in the background, compiling 
the document fails (because there's a running process).
- There are certain cases that I can't quite figure out where previewing slows 
down Emacs. I've profiled all my functions, and I am not 100% sure where this 
is coming from, especially since it seems to be intermittent.

I wonder if you experienced these or have ideas on how to address them.

-- Al



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

Reply via email to