summaryrefslogtreecommitdiff
path: root/src/intervals.c
diff options
context:
space:
mode:
authorDmitry Antipov <dmantipov@yandex.ru>2012-08-08 18:47:11 +0400
committerDmitry Antipov <dmantipov@yandex.ru>2012-08-08 18:47:11 +0400
commit4cb3e6b38ac6c50279474db0e87a52253af52f59 (patch)
tree3a4af4b3aa9291bea206fd76f729a2bda4c93c58 /src/intervals.c
parentd9f9b465414c4c345574d9f179808380751c070e (diff)
downloademacs-4cb3e6b38ac6c50279474db0e87a52253af52f59.tar.gz
Inline functions to examine and change buffer overlays.
* buffer.c (unchain_both): New function. * buffer.h (buffer_get_overlays, buffer_set_overlays): (buffer_has_overlays): New function. (enum overlay_type): New enum. * alloc.c, buffer.c, editfns.c, fileio.c, indent.c: * insdel.c, intervals.c, print.c, xdisp.c: Adjust users.
Diffstat (limited to 'src/intervals.c')
-rw-r--r--src/intervals.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/intervals.c b/src/intervals.c
index e9c3929670e..02ffe7ad90d 100644
--- a/src/intervals.c
+++ b/src/intervals.c
@@ -1870,8 +1870,7 @@ set_point_both (ptrdiff_t charpos, ptrdiff_t bytepos)
whether or not there are intervals in the buffer. */
eassert (charpos <= ZV && charpos >= BEGV);
- have_overlays = (current_buffer->overlays_before
- || current_buffer->overlays_after);
+ have_overlays = buffer_has_overlays ();
/* If we have no text properties and overlays,
then we can do it quickly. */