GNU bug report logs - #37337
2019-08-31; Error when `TeX-fold-hide-item' acts on evaporated overlays

Previous Next

Package: auctex;

Reported by: Florent Rougon <f.rougon <at> free.fr>

Date: Sat, 7 Sep 2019 21:38:01 UTC

Severity: normal

Done: Arash Esbati <arash <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Arash Esbati <arash <at> gnu.org>
To: Florent Rougon <f.rougon <at> free.fr>
Cc: 37337 <at> debbugs.gnu.org
Subject: bug#37337: [PATCH] Fix bug in `TeX-fold-hide-item' when acting on evaporated overlays
Date: Thu, 24 Oct 2019 21:50:19 +0200
Hi Florent,

Florent Rougon <f.rougon <at> free.fr> 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




This bug report was last modified 5 years and 209 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.