diff options
| author | Gerd Moellmann | 2000-04-24 13:55:05 +0000 |
|---|---|---|
| committer | Gerd Moellmann | 2000-04-24 13:55:05 +0000 |
| commit | a3bbced0df1558c9538deaf7544dbb2c0595840a (patch) | |
| tree | b93557a549b6b2adb11ca3daa6e3bdfe2ac0e763 | |
| parent | 82b911fda555d98b7c5339574fad4c69976b839e (diff) | |
| download | emacs-a3bbced0df1558c9538deaf7544dbb2c0595840a.tar.gz emacs-a3bbced0df1558c9538deaf7544dbb2c0595840a.zip | |
(init_buffer_once): Handle extra_line_spacing.
(syms_of_buffer): Add `default-line-spacing' and `line-spacing'.
(reset_buffer): Don't initialize extra2 and extra3. Intialize
extra_line_spacing from default value.
(init_buffer_once): Initialize default value of extra_line_spacing.
| -rw-r--r-- | src/buffer.c | 15 |
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\ |
| 4216 | This is the same as (default-value 'cursor-type)."); | 4217 | This 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\ | ||
| 4222 | This 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 | ¤t_buffer->extra_line_spacing, Qnil, | ||
| 4813 | "Additional space to put between lines when displaying a buffer.\n\ | ||
| 4814 | The 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; |