aboutsummaryrefslogtreecommitdiffstats
path: root/src/buffer.c
diff options
context:
space:
mode:
authorDmitry Antipov2012-08-08 10:11:29 +0400
committerDmitry Antipov2012-08-08 10:11:29 +0400
commit77c7bcb1157b405bde1227b20ef5f7ce9a90e689 (patch)
tree3daa729dc8fd54db0dff9ace5de1274e992a7d6b /src/buffer.c
parent9c08a8d4b549df18f815412d2a5494d28253179f (diff)
downloademacs-77c7bcb1157b405bde1227b20ef5f7ce9a90e689.tar.gz
emacs-77c7bcb1157b405bde1227b20ef5f7ce9a90e689.zip
Cleanup intervals.
* intervals.h (NULL_INTERVAL, DEFAULT_INTERVAL): Remove. (NULL_INTERVAL_P): Likewise. Adjust users. (FRONT_STICKY_P, END_NONSTICKY_P, FRONT_NONSTICKY_P): Adjust comment. Move under #if 0. * alloc.c, buffer.c, editfns.c, fns.c, insdel.c, intervals.c: * print.c, syntax.c, textprop.c, xdisp.c: Adjust users.
Diffstat (limited to 'src/buffer.c')
-rw-r--r--src/buffer.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/buffer.c b/src/buffer.c
index 7d0e1b641a2..ad28b69b972 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) = 0; 363 BUF_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;
@@ -384,7 +384,7 @@ even if it is dead. The return value is never nil. */)
384 BVAR (b, zv_marker) = Qnil; 384 BVAR (b, zv_marker) = Qnil;
385 385
386 name = Fcopy_sequence (buffer_or_name); 386 name = Fcopy_sequence (buffer_or_name);
387 STRING_SET_INTERVALS (name, NULL_INTERVAL); 387 STRING_SET_INTERVALS (name, NULL);
388 BVAR (b, name) = name; 388 BVAR (b, name) = name;
389 389
390 BVAR (b, undo_list) = (SREF (name, 0) != ' ') ? Qnil : Qt; 390 BVAR (b, undo_list) = (SREF (name, 0) != ' ') ? Qnil : Qt;
@@ -589,7 +589,7 @@ CLONE nil means the indirect buffer's state is reset to default values. */)
589 all_buffers = b; 589 all_buffers = b;
590 590
591 name = Fcopy_sequence (name); 591 name = Fcopy_sequence (name);
592 STRING_SET_INTERVALS (name, NULL_INTERVAL); 592 STRING_SET_INTERVALS (name, NULL);
593 BVAR (b, name) = name; 593 BVAR (b, name) = name;
594 594
595 reset_buffer (b); 595 reset_buffer (b);
@@ -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_INTERVAL; 1691 BUF_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) = 0; 4907 BUF_INTERVALS (&buffer_defaults) = NULL;
4908 BUF_INTERVALS (&buffer_local_symbols) = 0; 4908 BUF_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);