diff options
author | Dmitry Antipov <dmantipov@yandex.ru> | 2012-08-08 18:47:11 +0400 |
---|---|---|
committer | Dmitry Antipov <dmantipov@yandex.ru> | 2012-08-08 18:47:11 +0400 |
commit | 4cb3e6b38ac6c50279474db0e87a52253af52f59 (patch) | |
tree | 3a4af4b3aa9291bea206fd76f729a2bda4c93c58 /src/insdel.c | |
parent | d9f9b465414c4c345574d9f179808380751c070e (diff) |
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/insdel.c')
-rw-r--r-- | src/insdel.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/insdel.c b/src/insdel.c index ec0d3b31f7..f058ffc2bd 100644 --- a/src/insdel.c +++ b/src/insdel.c @@ -1993,7 +1993,7 @@ signal_before_change (ptrdiff_t start_int, ptrdiff_t end_int, XSETCDR (rvoe_arg, Qt); } - if (current_buffer->overlays_before || current_buffer->overlays_after) + if (buffer_has_overlays ()) { PRESERVE_VALUE; report_overlay_modification (FETCH_START, FETCH_END, 0, @@ -2029,8 +2029,7 @@ signal_after_change (ptrdiff_t charpos, ptrdiff_t lendel, ptrdiff_t lenins) just record the args that we were going to use. */ if (! NILP (Vcombine_after_change_calls) && NILP (Vbefore_change_functions) - && !current_buffer->overlays_before - && !current_buffer->overlays_after) + && !buffer_has_overlays ()) { Lisp_Object elt; @@ -2072,7 +2071,7 @@ signal_after_change (ptrdiff_t charpos, ptrdiff_t lendel, ptrdiff_t lenins) XSETCDR (rvoe_arg, Qt); } - if (current_buffer->overlays_before || current_buffer->overlays_after) + if (buffer_has_overlays ()) report_overlay_modification (make_number (charpos), make_number (charpos + lenins), 1, |