]> git.eshelyaron.com Git - emacs.git/commit
Fix `get-pos-property' for the new overlay implementation.
authorMatt Armstrong <matt@rfc20.org>
Sun, 23 Oct 2022 03:48:10 +0000 (20:48 -0700)
committerMatt Armstrong <matt@rfc20.org>
Sun, 23 Oct 2022 03:58:21 +0000 (20:58 -0700)
commitb78be2bf7a9ac8b71d25529d5736373f51852c36
tree00a68357d69af31cd25b5a08c2786e313a458919
parent555bc1f8b3ed8b02fb5acb013ed24073b0666585
Fix `get-pos-property' for the new overlay implementation.

Some of the trickier edge cases weren't handled properly.  See
bug#58706.

* src/editfns.c (overlays_around): Extend the search range past POS by
one to fetch overlays beginning at POS.  Fetch empty overlays, as they
may be extended by an insertion and thus be relevant to
`get-pos-property'.  Make a note that the function now, unfortunately,
may return out of range overlays.
(Fget_pos_property): Deal with 'overlays_around' returning out of
range overlays.
src/editfns.c