Mercurial > emacs
comparison src/buffer.c @ 28688:3c44b2f54f82
(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.
| author | Gerd Moellmann <gerd@gnu.org> |
|---|---|
| date | Mon, 24 Apr 2000 13:55:05 +0000 |
| parents | 19c81f320db5 |
| children | f35802bc5eaf |
comparison
equal
deleted
inserted
replaced
| 28687:fd361114073d | 28688:3c44b2f54f82 |
|---|---|
| 588 b->point_before_scroll = Qnil; | 588 b->point_before_scroll = Qnil; |
| 589 b->file_format = Qnil; | 589 b->file_format = Qnil; |
| 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. |
| 600 Don't use this on a buffer that has already been in use; | 599 Don't use this on a buffer that has already been in use; |
| 601 it does not treat permanent locals consistently. | 600 it does not treat permanent locals consistently. |
| 3974 XSETFASTINT (buffer_defaults.tab_width, 8); | 3973 XSETFASTINT (buffer_defaults.tab_width, 8); |
| 3975 buffer_defaults.truncate_lines = Qnil; | 3974 buffer_defaults.truncate_lines = Qnil; |
| 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 */ |
| 3982 #endif | 3982 #endif |
| 3983 buffer_defaults.enable_multibyte_characters = Qt; | 3983 buffer_defaults.enable_multibyte_characters = Qt; |
| 4054 XSETFASTINT (buffer_local_flags.indicate_empty_lines, idx); ++idx; | 4054 XSETFASTINT (buffer_local_flags.indicate_empty_lines, idx); ++idx; |
| 4055 XSETFASTINT (buffer_local_flags.scroll_up_aggressively, idx); ++idx; | 4055 XSETFASTINT (buffer_local_flags.scroll_up_aggressively, idx); ++idx; |
| 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) |
| 4062 abort (); | 4063 abort (); |
| 4063 last_per_buffer_idx = idx; | 4064 last_per_buffer_idx = idx; |
| 4212 This is the same as (default-value 'header-line-format)."); | 4213 This is the same as (default-value 'header-line-format)."); |
| 4213 | 4214 |
| 4214 DEFVAR_LISP_NOPRO ("default-cursor-type", &buffer_defaults.cursor_type, | 4215 DEFVAR_LISP_NOPRO ("default-cursor-type", &buffer_defaults.cursor_type, |
| 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)."); |
| 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)."); | |
| 4217 | 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\ |
| 4221 This is the same as (default-value 'abbrev-mode)."); | 4227 This is the same as (default-value 'abbrev-mode)."); |
| 4800 nil don't display a cursor\n\ | 4806 nil don't display a cursor\n\ |
| 4801 `bar' display a bar cursor with default width\n\ | 4807 `bar' display a bar cursor with default width\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; |
| 4808 | 4819 |
| 4809 defsubr (&Sbuffer_live_p); | 4820 defsubr (&Sbuffer_live_p); |
