aboutsummaryrefslogtreecommitdiffstats
path: root/src/buffer.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/buffer.c')
-rw-r--r--src/buffer.c15
1 files changed, 13 insertions, 2 deletions
diff --git a/src/buffer.c b/src/buffer.c
index f6e655a8314..ed53a09faa8 100644
--- a/src/buffer.c
+++ b/src/buffer.c
@@ -590,10 +590,9 @@ reset_buffer (b)
590 b->last_selected_window = Qnil; 590 b->last_selected_window = Qnil;
591 XSETINT (b->display_count, 0); 591 XSETINT (b->display_count, 0);
592 b->display_time = Qnil; 592 b->display_time = Qnil;
593 b->extra2 = Qnil;
594 b->extra3 = Qnil;
595 b->enable_multibyte_characters = buffer_defaults.enable_multibyte_characters; 593 b->enable_multibyte_characters = buffer_defaults.enable_multibyte_characters;
596 b->cursor_type = buffer_defaults.cursor_type; 594 b->cursor_type = buffer_defaults.cursor_type;
595 b->extra_line_spacing = buffer_defaults.extra_line_spacing;
597} 596}
598 597
599/* Reset buffer B's local variables info. 598/* Reset buffer B's local variables info.
@@ -3976,6 +3975,7 @@ init_buffer_once ()
3976 buffer_defaults.ctl_arrow = Qt; 3975 buffer_defaults.ctl_arrow = Qt;
3977 buffer_defaults.direction_reversed = Qnil; 3976 buffer_defaults.direction_reversed = Qnil;
3978 buffer_defaults.cursor_type = Qt; 3977 buffer_defaults.cursor_type = Qt;
3978 buffer_defaults.extra_line_spacing = Qnil;
3979 3979
3980#ifdef DOS_NT 3980#ifdef DOS_NT
3981 buffer_defaults.buffer_file_type = Qnil; /* TEXT */ 3981 buffer_defaults.buffer_file_type = Qnil; /* TEXT */
@@ -4056,6 +4056,7 @@ init_buffer_once ()
4056 XSETFASTINT (buffer_local_flags.scroll_down_aggressively, idx); ++idx; 4056 XSETFASTINT (buffer_local_flags.scroll_down_aggressively, idx); ++idx;
4057 XSETFASTINT (buffer_local_flags.header_line_format, idx); ++idx; 4057 XSETFASTINT (buffer_local_flags.header_line_format, idx); ++idx;
4058 XSETFASTINT (buffer_local_flags.cursor_type, idx); ++idx; 4058 XSETFASTINT (buffer_local_flags.cursor_type, idx); ++idx;
4059 XSETFASTINT (buffer_local_flags.extra_line_spacing, idx); ++idx;
4059 4060
4060 /* Need more room? */ 4061 /* Need more room? */
4061 if (idx >= MAX_PER_BUFFER_VARS) 4062 if (idx >= MAX_PER_BUFFER_VARS)
@@ -4215,6 +4216,11 @@ This is the same as (default-value 'header-line-format).");
4215 "Default value of `cursor-type' for buffers that don't override it.\n\ 4216 "Default value of `cursor-type' for buffers that don't override it.\n\
4216This is the same as (default-value 'cursor-type)."); 4217This is the same as (default-value 'cursor-type).");
4217 4218
4219 DEFVAR_LISP_NOPRO ("default-line-spacing",
4220 &buffer_defaults.extra_line_spacing,
4221 "Default value of `line-spacing' for buffers that don't override it.\n\
4222This is the same as (default-value 'line-spacing).");
4223
4218 DEFVAR_LISP_NOPRO ("default-abbrev-mode", 4224 DEFVAR_LISP_NOPRO ("default-abbrev-mode",
4219 &buffer_defaults.abbrev_mode, 4225 &buffer_defaults.abbrev_mode,
4220 "Default value of `abbrev-mode' for buffers that do not override it.\n\ 4226 "Default value of `abbrev-mode' for buffers that do not override it.\n\
@@ -4802,6 +4808,11 @@ Values are interpreted as follows:\n\
4802 (bar . WIDTH) display a bar cursor with width WIDTH\n\ 4808 (bar . WIDTH) display a bar cursor with width WIDTH\n\
4803 others display a box cursor."); 4809 others display a box cursor.");
4804 4810
4811 DEFVAR_PER_BUFFER ("line-spacing",
4812 &current_buffer->extra_line_spacing, Qnil,
4813 "Additional space to put between lines when displaying a buffer.\n\
4814The space is measured in pixels, and put below lines on window systems.");
4815
4805 DEFVAR_LISP ("kill-buffer-query-functions", &Vkill_buffer_query_functions, 4816 DEFVAR_LISP ("kill-buffer-query-functions", &Vkill_buffer_query_functions,
4806 "List of functions called with no args to query before killing a buffer."); 4817 "List of functions called with no args to query before killing a buffer.");
4807 Vkill_buffer_query_functions = Qnil; 4818 Vkill_buffer_query_functions = Qnil;