aboutsummaryrefslogtreecommitdiffstats
path: root/src/buffer.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/buffer.c')
-rw-r--r--src/buffer.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/buffer.c b/src/buffer.c
index c00cc40d6f2..713c1e5b944 100644
--- a/src/buffer.c
+++ b/src/buffer.c
@@ -357,6 +357,11 @@ bset_zv_marker (struct buffer *b, Lisp_Object val)
357{ 357{
358 b->zv_marker_ = val; 358 b->zv_marker_ = val;
359} 359}
360static void
361bset_literal_cache_hwm (struct buffer *b, Lisp_Object val)
362{
363 b->literal_cache_hwm_ = val;
364}
360 365
361void 366void
362nsberror (Lisp_Object spec) 367nsberror (Lisp_Object spec)
@@ -5116,6 +5121,7 @@ init_buffer_once (void)
5116 XSETFASTINT (BVAR (&buffer_local_flags, cursor_type), idx); ++idx; 5121 XSETFASTINT (BVAR (&buffer_local_flags, cursor_type), idx); ++idx;
5117 XSETFASTINT (BVAR (&buffer_local_flags, extra_line_spacing), idx); ++idx; 5122 XSETFASTINT (BVAR (&buffer_local_flags, extra_line_spacing), idx); ++idx;
5118 XSETFASTINT (BVAR (&buffer_local_flags, cursor_in_non_selected_windows), idx); ++idx; 5123 XSETFASTINT (BVAR (&buffer_local_flags, cursor_in_non_selected_windows), idx); ++idx;
5124 XSETFASTINT (BVAR (&buffer_local_flags, literal_cache_hwm), idx); ++idx;
5119 5125
5120 /* Need more room? */ 5126 /* Need more room? */
5121 if (idx >= MAX_PER_BUFFER_VARS) 5127 if (idx >= MAX_PER_BUFFER_VARS)
@@ -5202,6 +5208,7 @@ init_buffer_once (void)
5202 bset_scroll_up_aggressively (&buffer_defaults, Qnil); 5208 bset_scroll_up_aggressively (&buffer_defaults, Qnil);
5203 bset_scroll_down_aggressively (&buffer_defaults, Qnil); 5209 bset_scroll_down_aggressively (&buffer_defaults, Qnil);
5204 bset_display_time (&buffer_defaults, Qnil); 5210 bset_display_time (&buffer_defaults, Qnil);
5211 bset_literal_cache_hwm (&buffer_defaults, make_number (1));
5205 5212
5206 /* Assign the local-flags to the slots that have default values. 5213 /* Assign the local-flags to the slots that have default values.
5207 The local flag is a bit that is used in the buffer 5214 The local flag is a bit that is used in the buffer
@@ -6133,6 +6140,10 @@ If t, displays a cursor related to the usual cursor type
6133You can also specify the cursor type as in the `cursor-type' variable. 6140You can also specify the cursor type as in the `cursor-type' variable.
6134Use Custom to set this variable and update the display. */); 6141Use Custom to set this variable and update the display. */);
6135 6142
6143 DEFVAR_PER_BUFFER ("literal-cache-hwm",
6144 &BVAR (current_buffer, literal_cache_hwm), Qintegerp,
6145 doc: /* Buffer position below which the `literal-cache' property is valid. */);
6146
6136 DEFVAR_LISP ("kill-buffer-query-functions", Vkill_buffer_query_functions, 6147 DEFVAR_LISP ("kill-buffer-query-functions", Vkill_buffer_query_functions,
6137 doc: /* List of functions called with no args to query before killing a buffer. 6148 doc: /* List of functions called with no args to query before killing a buffer.
6138The buffer being killed will be current while the functions are running. 6149The buffer being killed will be current while the functions are running.