summaryrefslogtreecommitdiff
path: root/etc
diff options
context:
space:
mode:
authorLars Ingebrigtsen <larsi@gnus.org>2021-08-16 15:40:43 +0200
committerLars Ingebrigtsen <larsi@gnus.org>2021-08-16 15:40:43 +0200
commit5d7b1d5fc75752a986ed19d3fd333167ddc29d4e (patch)
tree2958f419b095ee6e5f7eada504dfcaf40e5d10a8 /etc
parenta3b31302dd1b7c1ffd3486b35de06c957785b919 (diff)
downloademacs-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/NEWS8
1 files changed, 8 insertions, 0 deletions
diff --git a/etc/NEWS b/etc/NEWS
index 54168e82660..3ccef6683a5 100644
--- a/etc/NEWS
+++ b/etc/NEWS
@@ -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,