diff options
author | Matt Armstrong <matt@rfc20.org> | 2022-10-21 19:45:13 -0700 |
---|---|---|
committer | Matt Armstrong <matt@rfc20.org> | 2022-10-21 19:58:34 -0700 |
commit | f2a51774a934f29848c5796b46faa5e3b022c401 (patch) | |
tree | 2205718ca742e3bba9790ace881373a3d540d3d2 /test/lisp/emacs-lisp/lisp-mode-tests.el | |
parent | a2fde77b5cc15ec5a1c29ca72c97c806204818a9 (diff) | |
download | emacs-f2a51774a934f29848c5796b46faa5e3b022c401.tar.gz emacs-f2a51774a934f29848c5796b46faa5e3b022c401.tar.bz2 emacs-f2a51774a934f29848c5796b46faa5e3b022c401.zip |
Fix a narrow-to-region vs. overlays-at bug
See bug#58703.
* src/buffer.c (overlays_in): Add a new TRAILING arg expressing the
behavior wanted by `overlays-at', namely to include all overlays
beginning at the POS passed to `overlays-at', even if POS is the end
of the narrowed region. Pass true and the search range is extended to
ZV+1 if END is greater than ZV, just as is done for EMPTY.
(overlays_at): Pass 'true' for the new trailing arg. At present this
is the only caller passing 'true'.
(mouse_face_overlay_overlaps): Pass 'false' for the new trailing arg.
(disable_line_numbers_overlay_at_eob): ditto.
(Foverlays_in): ditto.
* src/editfns.c (overlays_around): ditto.
* test/src/buffer-tests.el (sorted-overlays): Add a spot test for
this.
Diffstat (limited to 'test/lisp/emacs-lisp/lisp-mode-tests.el')
0 files changed, 0 insertions, 0 deletions