aboutsummaryrefslogtreecommitdiffstats
path: root/src/buffer.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/buffer.c')
-rw-r--r--src/buffer.c13
1 files changed, 12 insertions, 1 deletions
diff --git a/src/buffer.c b/src/buffer.c
index 3d73dd722c2..13861a8edbb 100644
--- a/src/buffer.c
+++ b/src/buffer.c
@@ -456,6 +456,7 @@ reset_buffer (b)
456 b->mark_active = Qnil; 456 b->mark_active = Qnil;
457 b->point_before_scroll = Qnil; 457 b->point_before_scroll = Qnil;
458 b->file_format = Qnil; 458 b->file_format = Qnil;
459 b->redisplay_end_trigger = Qnil;
459} 460}
460 461
461/* Reset buffer B's local variables info. 462/* Reset buffer B's local variables info.
@@ -3354,7 +3355,8 @@ init_buffer_once ()
3354 XSETINT (buffer_local_flags.point_before_scroll, -1); 3355 XSETINT (buffer_local_flags.point_before_scroll, -1);
3355 XSETINT (buffer_local_flags.file_truename, -1); 3356 XSETINT (buffer_local_flags.file_truename, -1);
3356 XSETINT (buffer_local_flags.invisibility_spec, -1); 3357 XSETINT (buffer_local_flags.invisibility_spec, -1);
3357 XSETFASTINT (buffer_local_flags.file_format, -1); 3358 XSETINT (buffer_local_flags.file_format, -1);
3359 XSETINT (buffer_local_flags.redisplay_end_trigger, -1);
3358 3360
3359 XSETFASTINT (buffer_local_flags.mode_line_format, 1); 3361 XSETFASTINT (buffer_local_flags.mode_line_format, 1);
3360 XSETFASTINT (buffer_local_flags.abbrev_mode, 2); 3362 XSETFASTINT (buffer_local_flags.abbrev_mode, 2);
@@ -3893,6 +3895,15 @@ functions; it should only affect their performance.");
3893Formats are defined by `format-alist'. This variable is\n\ 3895Formats are defined by `format-alist'. This variable is\n\
3894set when a file is visited. Automatically local in all buffers."); 3896set when a file is visited. Automatically local in all buffers.");
3895 3897
3898 DEFVAR_PER_BUFFER ("buffer-redisplay-end-trigger",
3899 &current_buffer->redisplay_end_trigger, Qnil,
3900 "Trigger point for running `redisplay-end-trigger-hook'.\n\
3901This variable is always local in every buffer.\n\
3902If redisplay in the buffer reaches a position larger than the\n\
3903value of `buffer-redisplay-end-trigger', then the hook is run\n\
3904after first setting `buffer-redisplay-end-trigger' to nil.\n\
3905If `buffer-redisplay-end-trigger' is nil, the hook is never run.");
3906
3896 DEFVAR_PER_BUFFER ("buffer-invisibility-spec", 3907 DEFVAR_PER_BUFFER ("buffer-invisibility-spec",
3897 &current_buffer->invisibility_spec, Qnil, 3908 &current_buffer->invisibility_spec, Qnil,
3898 "Invisibility spec of this buffer.\n\ 3909 "Invisibility spec of this buffer.\n\