Hi Paul,

On 25/10/2026, Paul D. Nelson wrote:
> Thanks, that clarified the intended behavior.  In my workflow, I
> regularly insert complete formulas using abbrevs and then continue
> typing prose.  I agree that queuing every changed formula throughout the
> document ("effectively preview-buffer") would be excessive, but there
> are alternatives.  For instance, preview-auto searches a configurable
> neighborhood of point, skips existing previews, batches nearby formulas,
> etc.  This has worked well for me.  Could preview-automatic provide
> (optional?) support for that kind of policy?  The callback that returns
> regions comes close, but we would also need to be able to trigger
> additional work after a preview run finishes.  I'd be happy to help sort
> this out, or adapt any relevant code from preview-auto.
>

In theory, I believe this is doable by writing an appropriate
`preview-automatic-function` to return the region around the current
point which would simply batch all new previews in one go. There would
probably need to be changes to allow skipping existing previews, though
I am not sure why this could be needed.

Help is definitely appreciated since I have limited time these day. I
would suggest that the current "simple" mode of operation is maintained
but the interface is made richer (if needed) so that the more complete
feature set is implemented with proper customization. In any case, I
would strongly suggest that we limit automatic preview to one preview
call rather than try to chain multiple ones which I suspect will be
difficult to tame without a proper queuing system.

> Indeed, I've applied your changes to my local Emacs and they fix the
> issue.  For now, is there any reason not to just drop the first branch
> of
>
> (if (require 'timeout nil t) ...)
>
> until the timeout bug is fixed?
Yes, we will have to do that. I'll do more testing to make sure that
branch is correct.

Best regards,
-- Al



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

Reply via email to