summaryrefslogtreecommitdiff
path: root/src/print.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/print.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/print.c')
-rw-r--r--src/print.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/print.c b/src/print.c
index 8c6d1eabc18..718e6a96329 100644
--- a/src/print.c
+++ b/src/print.c
@@ -498,8 +498,8 @@ temp_output_buffer_setup (const char *bufname)
BVAR (current_buffer, read_only) = Qnil;
BVAR (current_buffer, filename) = Qnil;
BVAR (current_buffer, undo_list) = Qt;
- eassert (current_buffer->overlays_before == NULL);
- eassert (current_buffer->overlays_after == NULL);
+ eassert (buffer_get_overlays (NULL, OV_BEFORE) == NULL);
+ eassert (buffer_get_overlays (NULL, OV_AFTER) == NULL);
BVAR (current_buffer, enable_multibyte_characters)
= BVAR (&buffer_defaults, enable_multibyte_characters);
specbind (Qinhibit_read_only, Qt);