Hi Arash and Al,

Arash Esbati <[email protected]> writes:

> "Paul D. Nelson" <[email protected]> writes:
>
>> Haven't experienced this yet (but haven't played around with
>> preview-automatic much yet, looking forward to doing so once I get the
>> basics ironed out).
>
> Gents, may I kindly ask you to try to fix/resolve/implement this
> feature?  Al asked me to hold back AUCTeX 14.2.0 until this change is
> included back in March, which is not a problem.  I'd appreciate if we
> could make some progress here in order to be able to make a release
> sometime soon.

My quoted comment was ambiguous, so to clarify -- by "haven't played
around yet...basics ironed out", I mean that the patch hasn't yet been
usable for me due to basic issues (e.g. the repro I sent on July 10), so
I can't yet comment meaningfully on the slowdown Al mentioned.

As for the timeline, let me mention that my hope is to use and support
this feature, and eventually deprecate preview-auto (my ELPA package) in
favor of it.  It doesn't need to do everything preview-auto does out of
the box, but I want the hooks to be rich enough that I can recover
roughly the same behavior.  Depending upon how long this takes, one
option would be to release 14.2.0 without it and target the next
version.

Thinking it over, I see two layers to the proposed feature:

(1) A mechanism for generating/refreshing previews for a given region,
silently: no pop-ups or echo spam, no conflicts with user compilations
or other preview jobs, and cancellation if the user modifies an earlier
part of the buffer (possibly invalidating later preview positions).

(2) A policy for deciding when/where to call that mechanism.

I suspect we can converge on the mechanism quickly.  Al's
preview-silent-errors is close.  The additional primitive I'd like is a
function that behaves like preview-automatic-update, but accepts a
region rather than a point and specifies no policy.

For the built-in policy, I'd be happy for preview-at-point to select the
region by default, as Al suggests.  My immediate issues are related to
regions getting previewed without first checking that they are complete.
texmathp identifies whether point is in math, but not whether the math
is complete.  preview-auto searches for matching closing delimiters (and
I'd be happy to try to adapt some of that code here, if we can't think
of a simpler way).

Thanks, best,
Paul



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

Reply via email to