Hi Florent,

Florent Rougon <[email protected]> writes:

> * tex-fold.el (TeX-fold-hide-item): wrap the end of the function in
> (unless (equal ov-start ov-end) ...). What is done in this part isn't
> useful with evaporated overlays and used to cause bugs because
> `overlay-start' and `overlay-end' return nil for such overlays, and
> functions such as `TeX-fold-overfull-p` try to move point to the
> overlay-end. Fixes bug#37337.

Many thanks for tracking this down.  I can confirm the bug you describe,
and have a question reg. your patch: If it's only about checking if
`overlay-start' and `overlay-end' are non-nil, wouldn't it be easier to
do:

    (when (and ov-start ov-end) ...)

instead of

    (unless (equal ov-start ov-end) ...)

?
Best, Arash



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

Reply via email to