aboutsummaryrefslogtreecommitdiffstats
path: root/src/buffer.c
diff options
context:
space:
mode:
authorDmitry Antipov2012-08-08 16:12:40 +0400
committerDmitry Antipov2012-08-08 16:12:40 +0400
commit8707c1e56ca83a0a34785e451dcef428c60242fe (patch)
treef404532e675b2870620faafa8d94dacf618c1a22 /src/buffer.c
parentad8c997f72c95b7351eab4c8ea2ac8c667545e6f (diff)
downloademacs-8707c1e56ca83a0a34785e451dcef428c60242fe.tar.gz
emacs-8707c1e56ca83a0a34785e451dcef428c60242fe.zip
Inline functions to examine and change buffer intervals.
* alloc.c (mark_interval_tree): Remove. (MARK_INTERVAL_TREE): Simplify. (UNMARK_BALANCE_INTERVALS): Remove. Adjust users. * intervals.c (buffer_balance_intervals): New function. (graft_intervals_into_buffer): Adjust indentation. (set_intervals_multibyte): Simplify. * buffer.h (BUF_INTERVALS): Remove. (buffer_get_intervals, buffer_set_intervals): New function. * alloc.c, buffer.c, editfns.c, fileio.c, indent.c, insdel.c: * intervals.c, textprop.c: Adjust users.
Diffstat (limited to 'src/buffer.c')
-rw-r--r--src/buffer.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/buffer.c b/src/buffer.c
index 395ca48680f..fab7330b195 100644
--- a/src/buffer.c
+++ b/src/buffer.c
@@ -360,7 +360,7 @@ even if it is dead. The return value is never nil. */)
360 BUF_CHARS_MODIFF (b) = 1; 360 BUF_CHARS_MODIFF (b) = 1;
361 BUF_OVERLAY_MODIFF (b) = 1; 361 BUF_OVERLAY_MODIFF (b) = 1;
362 BUF_SAVE_MODIFF (b) = 1; 362 BUF_SAVE_MODIFF (b) = 1;
363 BUF_INTERVALS (b) = NULL; 363 buffer_set_intervals (b, NULL);
364 BUF_UNCHANGED_MODIFIED (b) = 1; 364 BUF_UNCHANGED_MODIFIED (b) = 1;
365 BUF_OVERLAY_UNCHANGED_MODIFIED (b) = 1; 365 BUF_OVERLAY_UNCHANGED_MODIFIED (b) = 1;
366 BUF_END_UNCHANGED (b) = 0; 366 BUF_END_UNCHANGED (b) = 0;
@@ -1688,7 +1688,7 @@ cleaning up all windows currently displaying the buffer to be killed. */)
1688 m = next; 1688 m = next;
1689 } 1689 }
1690 BUF_MARKERS (b) = NULL; 1690 BUF_MARKERS (b) = NULL;
1691 BUF_INTERVALS (b) = NULL; 1691 buffer_set_intervals (b, NULL);
1692 1692
1693 /* Perhaps we should explicitly free the interval tree here... */ 1693 /* Perhaps we should explicitly free the interval tree here... */
1694 } 1694 }
@@ -4904,8 +4904,8 @@ init_buffer_once (void)
4904 /* No one will share the text with these buffers, but let's play it safe. */ 4904 /* No one will share the text with these buffers, but let's play it safe. */
4905 buffer_defaults.indirections = 0; 4905 buffer_defaults.indirections = 0;
4906 buffer_local_symbols.indirections = 0; 4906 buffer_local_symbols.indirections = 0;
4907 BUF_INTERVALS (&buffer_defaults) = NULL; 4907 buffer_set_intervals (&buffer_defaults, NULL);
4908 BUF_INTERVALS (&buffer_local_symbols) = NULL; 4908 buffer_set_intervals (&buffer_local_symbols, NULL);
4909 XSETPVECTYPESIZE (&buffer_defaults, PVEC_BUFFER, pvecsize); 4909 XSETPVECTYPESIZE (&buffer_defaults, PVEC_BUFFER, pvecsize);
4910 XSETBUFFER (Vbuffer_defaults, &buffer_defaults); 4910 XSETBUFFER (Vbuffer_defaults, &buffer_defaults);
4911 XSETPVECTYPESIZE (&buffer_local_symbols, PVEC_BUFFER, pvecsize); 4911 XSETPVECTYPESIZE (&buffer_local_symbols, PVEC_BUFFER, pvecsize);