diff options
| author | Richard M. Stallman | 1995-10-21 23:01:11 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1995-10-21 23:01:11 +0000 |
| commit | 55ac8536fe9e9aa6aefbae5f5e721eac979ed6f7 (patch) | |
| tree | 960f5f497c64390ba3bce42e4d579583f08d9642 /src | |
| parent | f98e758c2fda69b27a61d0d782fe21c6934c4585 (diff) | |
| download | emacs-55ac8536fe9e9aa6aefbae5f5e721eac979ed6f7.tar.gz emacs-55ac8536fe9e9aa6aefbae5f5e721eac979ed6f7.zip | |
(reset_buffer): Initialize redisplay_end_trigger slot.
(init_buffer_once): Mark redisplay_end_trigger always local.
Also fix previous change.
(syms_of_buffer): Set up Lisp var buffer-redisplay-end-trigger.
Diffstat (limited to 'src')
| -rw-r--r-- | src/buffer.c | 13 |
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."); | |||
| 3893 | Formats are defined by `format-alist'. This variable is\n\ | 3895 | Formats are defined by `format-alist'. This variable is\n\ |
| 3894 | set when a file is visited. Automatically local in all buffers."); | 3896 | set when a file is visited. Automatically local in all buffers."); |
| 3895 | 3897 | ||
| 3898 | DEFVAR_PER_BUFFER ("buffer-redisplay-end-trigger", | ||
| 3899 | ¤t_buffer->redisplay_end_trigger, Qnil, | ||
| 3900 | "Trigger point for running `redisplay-end-trigger-hook'.\n\ | ||
| 3901 | This variable is always local in every buffer.\n\ | ||
| 3902 | If redisplay in the buffer reaches a position larger than the\n\ | ||
| 3903 | value of `buffer-redisplay-end-trigger', then the hook is run\n\ | ||
| 3904 | after first setting `buffer-redisplay-end-trigger' to nil.\n\ | ||
| 3905 | If `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 | ¤t_buffer->invisibility_spec, Qnil, | 3908 | ¤t_buffer->invisibility_spec, Qnil, |
| 3898 | "Invisibility spec of this buffer.\n\ | 3909 | "Invisibility spec of this buffer.\n\ |