mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-04-27 08:43:40 -07:00
Mention overlays-in' in the overlays-at' doc string
* src/buffer.c (Foverlays_at): Mention `overlays-in' in the doc string (bug#459).
This commit is contained in:
parent
6ebe8b03d8
commit
06ee8ac36c
2 changed files with 18 additions and 1 deletions
|
|
@ -1386,4 +1386,17 @@ with parameters from the *Messages* buffer modification."
|
|||
(when (buffer-live-p base)
|
||||
(kill-buffer base)))))))
|
||||
|
||||
(ert-deftest zero-length-overlays-and-not ()
|
||||
(with-temp-buffer
|
||||
(insert "hello")
|
||||
(let ((long-overlay (make-overlay 2 4))
|
||||
(zero-overlay (make-overlay 3 3)))
|
||||
;; Exclude.
|
||||
(should (= (length (overlays-at 3)) 1))
|
||||
(should (eq (car (overlays-at 3)) long-overlay))
|
||||
;; Include.
|
||||
(should (= (length (overlays-in 3 3)) 2))
|
||||
(should (memq long-overlay (overlays-in 3 3)))
|
||||
(should (memq zero-overlay (overlays-in 3 3))))))
|
||||
|
||||
;;; buffer-tests.el ends here
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue