diff options
author | Lars Ingebrigtsen <larsi@gnus.org> | 2021-08-16 15:40:43 +0200 |
---|---|---|
committer | Lars Ingebrigtsen <larsi@gnus.org> | 2021-08-16 15:40:43 +0200 |
commit | 5d7b1d5fc75752a986ed19d3fd333167ddc29d4e (patch) | |
tree | 2958f419b095ee6e5f7eada504dfcaf40e5d10a8 /etc | |
parent | a3b31302dd1b7c1ffd3486b35de06c957785b919 (diff) | |
download | emacs-5d7b1d5fc75752a986ed19d3fd333167ddc29d4e.tar.gz |
Make overlays-in treat zero-length overlays at point-max consistently
* doc/lispref/display.texi (Finding Overlays): Adjust documentation.
* src/buffer.c (overlays_in): Treat the end of the buffer and the
end of the narrowed-to buffer the same (bug#19422).
(Foverlays_in): Adjust doc string.
Diffstat (limited to 'etc')
-rw-r--r-- | etc/NEWS | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -3080,6 +3080,14 @@ This is to keep the same behavior as Eshell. * Incompatible Lisp Changes in Emacs 28.1 ++++ +** 'overlays-in' now handles zero-length overlays slightly differently. +Previosly, zero-length overlays at the end of the buffer were included +in the result (if the region queried for stopped at that position). +The same was not the case if the buffer had been narrowed to exclude +the real end of the buffer. This has now been changed, and +zero-length overlays at `point-max' are always included in the results. + --- ** 'replace-match' now runs modification hooks slightly later. The function is documented to leave point after the replacement text, |