aboutsummaryrefslogtreecommitdiffstats
path: root/src/buffer.c
diff options
context:
space:
mode:
authorJim Blandy1993-05-14 15:35:17 +0000
committerJim Blandy1993-05-14 15:35:17 +0000
commit8ebafa8d4defedb95288b059b18bd1b82200b81d (patch)
tree6c0e375605277368be71242f77f3ab8990d69ee3 /src/buffer.c
parent24f1977f70fcbbfd18af4636846b195ca5b2921c (diff)
downloademacs-8ebafa8d4defedb95288b059b18bd1b82200b81d.tar.gz
emacs-8ebafa8d4defedb95288b059b18bd1b82200b81d.zip
* buffer.c (Foverlay_start, Foverlay_end, Foverlay_buffer,
Foverlay_properties): Functions moved here from subr.el.
Diffstat (limited to 'src/buffer.c')
-rw-r--r--src/buffer.c49
1 files changed, 49 insertions, 0 deletions
diff --git a/src/buffer.c b/src/buffer.c
index 9e27460fb44..d56ddad7aca 100644
--- a/src/buffer.c
+++ b/src/buffer.c
@@ -1591,6 +1591,51 @@ DEFUN ("delete-overlay", Fdelete_overlay, Sdelete_overlay, 1, 1, 0,
1591 return Qnil; 1591 return Qnil;
1592} 1592}
1593 1593
1594/* Overlay dissection functions. */
1595
1596DEFUN ("overlay-start", Foverlay_start, Soverlay_start, 1, 1, 0,
1597 "Return the position at which OVERLAY starts.")
1598 (overlay)
1599 Lisp_Object overlay;
1600{
1601 CHECK_OVERLAY (overlay, 0);
1602
1603 return (Fmarker_position (OVERLAY_START (overlay)));
1604}
1605
1606DEFUN ("overlay-end", Foverlay_end, Soverlay_end, 1, 1, 0,
1607 "Return the position at which OVERLAY ends.")
1608 (overlay)
1609 Lisp_Object overlay;
1610{
1611 CHECK_OVERLAY (overlay, 0);
1612
1613 return (Fmarker_position (OVERLAY_END (overlay)));
1614}
1615
1616DEFUN ("overlay-buffer", Foverlay_buffer, Soverlay_buffer, 1, 1, 0,
1617 "Return the buffer OVERLAY belongs to.")
1618 (overlay)
1619 Lisp_Object overlay;
1620{
1621 CHECK_OVERLAY (overlay, 0);
1622
1623 return Fmarker_buffer (OVERLAY_START (overlay));
1624}
1625
1626DEFUN ("overlay-properties", Foverlay_properties, Soverlay_properties, 1, 1, 0,
1627 "Return a list of the properties on OVERLAY.\n\
1628This is a copy of OVERLAY's plist; modifying its conses has no effect on\n\
1629OVERLAY.")
1630 (overlay)
1631 Lisp_Object overlay;
1632{
1633 CHECK_OVERLAY (overlay, 0);
1634
1635 return Fcopy_sequence (Fcdr_safe (XCONS (overlay)->cdr));
1636}
1637
1638
1594DEFUN ("overlays-at", Foverlays_at, Soverlays_at, 1, 1, 0, 1639DEFUN ("overlays-at", Foverlays_at, Soverlays_at, 1, 1, 0,
1595 "Return a list of the overays that contain position POS.") 1640 "Return a list of the overays that contain position POS.")
1596 (pos) 1641 (pos)
@@ -2246,6 +2291,10 @@ Automatically local in all buffers.");
2246 defsubr (&Smake_overlay); 2291 defsubr (&Smake_overlay);
2247 defsubr (&Sdelete_overlay); 2292 defsubr (&Sdelete_overlay);
2248 defsubr (&Smove_overlay); 2293 defsubr (&Smove_overlay);
2294 defsubr (&Soverlay_start);
2295 defsubr (&Soverlay_end);
2296 defsubr (&Soverlay_buffer);
2297 defsubr (&Soverlay_properties);
2249 defsubr (&Soverlays_at); 2298 defsubr (&Soverlays_at);
2250 defsubr (&Snext_overlay_change); 2299 defsubr (&Snext_overlay_change);
2251 defsubr (&Soverlay_recenter); 2300 defsubr (&Soverlay_recenter);