comparison src/buffer.c @ 69047:7e64cebb0463

(init_buffer_once): Set dummy default values for fringe-indicator-alist and fringe-cursor-alist. The proper default values are set by pre-loading fringe.el. (syms_of_buffer): defvar_per_buffer new fringe-indicator-alist and fringe-cursor-alist buffer-local variables and defvar_lisp_nopro correspondig default- variables.
author Kim F. Storm <storm@cua.dk>
date Mon, 20 Feb 2006 22:14:06 +0000
parents 3bd95f4f2941
children 5c9e3eb42568 866effff65a4 d1c5430c5bff
comparison
equal deleted inserted replaced
69046:d037a8cb1b92 69047:7e64cebb0463
4991 buffer_defaults.fringes_outside_margins = Qnil; 4991 buffer_defaults.fringes_outside_margins = Qnil;
4992 buffer_defaults.scroll_bar_width = Qnil; 4992 buffer_defaults.scroll_bar_width = Qnil;
4993 buffer_defaults.vertical_scroll_bar_type = Qt; 4993 buffer_defaults.vertical_scroll_bar_type = Qt;
4994 buffer_defaults.indicate_empty_lines = Qnil; 4994 buffer_defaults.indicate_empty_lines = Qnil;
4995 buffer_defaults.indicate_buffer_boundaries = Qnil; 4995 buffer_defaults.indicate_buffer_boundaries = Qnil;
4996 buffer_defaults.fringe_indicator_alist = Qnil;
4997 buffer_defaults.fringe_cursor_alist = Qnil;
4996 buffer_defaults.scroll_up_aggressively = Qnil; 4998 buffer_defaults.scroll_up_aggressively = Qnil;
4997 buffer_defaults.scroll_down_aggressively = Qnil; 4999 buffer_defaults.scroll_down_aggressively = Qnil;
4998 buffer_defaults.display_time = Qnil; 5000 buffer_defaults.display_time = Qnil;
4999 5001
5000 /* Assign the local-flags to the slots that have default values. 5002 /* Assign the local-flags to the slots that have default values.
5062 XSETFASTINT (buffer_local_flags.fringes_outside_margins, idx); ++idx; 5064 XSETFASTINT (buffer_local_flags.fringes_outside_margins, idx); ++idx;
5063 XSETFASTINT (buffer_local_flags.scroll_bar_width, idx); ++idx; 5065 XSETFASTINT (buffer_local_flags.scroll_bar_width, idx); ++idx;
5064 XSETFASTINT (buffer_local_flags.vertical_scroll_bar_type, idx); ++idx; 5066 XSETFASTINT (buffer_local_flags.vertical_scroll_bar_type, idx); ++idx;
5065 XSETFASTINT (buffer_local_flags.indicate_empty_lines, idx); ++idx; 5067 XSETFASTINT (buffer_local_flags.indicate_empty_lines, idx); ++idx;
5066 XSETFASTINT (buffer_local_flags.indicate_buffer_boundaries, idx); ++idx; 5068 XSETFASTINT (buffer_local_flags.indicate_buffer_boundaries, idx); ++idx;
5069 XSETFASTINT (buffer_local_flags.fringe_indicator_alist, idx); ++idx;
5070 XSETFASTINT (buffer_local_flags.fringe_cursor_alist, idx); ++idx;
5067 XSETFASTINT (buffer_local_flags.scroll_up_aggressively, idx); ++idx; 5071 XSETFASTINT (buffer_local_flags.scroll_up_aggressively, idx); ++idx;
5068 XSETFASTINT (buffer_local_flags.scroll_down_aggressively, idx); ++idx; 5072 XSETFASTINT (buffer_local_flags.scroll_down_aggressively, idx); ++idx;
5069 XSETFASTINT (buffer_local_flags.header_line_format, idx); ++idx; 5073 XSETFASTINT (buffer_local_flags.header_line_format, idx); ++idx;
5070 XSETFASTINT (buffer_local_flags.cursor_type, idx); ++idx; 5074 XSETFASTINT (buffer_local_flags.cursor_type, idx); ++idx;
5071 XSETFASTINT (buffer_local_flags.extra_line_spacing, idx); ++idx; 5075 XSETFASTINT (buffer_local_flags.extra_line_spacing, idx); ++idx;
5354 5358
5355 DEFVAR_LISP_NOPRO ("default-indicate-buffer-boundaries", 5359 DEFVAR_LISP_NOPRO ("default-indicate-buffer-boundaries",
5356 &buffer_defaults.indicate_buffer_boundaries, 5360 &buffer_defaults.indicate_buffer_boundaries,
5357 doc: /* Default value of `indicate-buffer-boundaries' for buffers that don't override it. 5361 doc: /* Default value of `indicate-buffer-boundaries' for buffers that don't override it.
5358 This is the same as (default-value 'indicate-buffer-boundaries). */); 5362 This is the same as (default-value 'indicate-buffer-boundaries). */);
5363
5364 DEFVAR_LISP_NOPRO ("default-fringe-indicator-alist",
5365 &buffer_defaults.fringe_indicator_alist,
5366 doc: /* Default value of `fringe-indicator-alist' for buffers that don't override it.
5367 This is the same as (default-value 'fringe-indicator-alist'). */);
5368
5369 DEFVAR_LISP_NOPRO ("default-fringe-cursor-alist",
5370 &buffer_defaults.fringe_cursor_alist,
5371 doc: /* Default value of `fringe-cursor-alist' for buffers that don't override it.
5372 This is the same as (default-value 'fringe-cursor-alist'). */);
5359 5373
5360 DEFVAR_LISP_NOPRO ("default-scroll-up-aggressively", 5374 DEFVAR_LISP_NOPRO ("default-scroll-up-aggressively",
5361 &buffer_defaults.scroll_up_aggressively, 5375 &buffer_defaults.scroll_up_aggressively,
5362 doc: /* Default value of `scroll-up-aggressively'. 5376 doc: /* Default value of `scroll-up-aggressively'.
5363 This value applies in buffers that don't have their own local values. 5377 This value applies in buffers that don't have their own local values.
5700 For example, ((top . left) (t . right)) places the top angle bitmap in 5714 For example, ((top . left) (t . right)) places the top angle bitmap in
5701 left fringe, the bottom angle bitmap in right fringe, and both arrow 5715 left fringe, the bottom angle bitmap in right fringe, and both arrow
5702 bitmaps in right fringe. To show just the angle bitmaps in the left 5716 bitmaps in right fringe. To show just the angle bitmaps in the left
5703 fringe, but no arrow bitmaps, use ((top . left) (bottom . left)). */); 5717 fringe, but no arrow bitmaps, use ((top . left) (bottom . left)). */);
5704 5718
5719 DEFVAR_PER_BUFFER ("fringe-indicator-alist",
5720 &current_buffer->fringe_indicator_alist, Qnil,
5721 doc: /* *Mapping from logical to physical fringe indicator bitmaps.
5722 The value is an alist where each element (INDICATOR . BITMAPS)
5723 specifies the fringe bitmaps used to display a specific logical
5724 fringe indicator.
5725
5726 INDICATOR specifies the logical indicator type which is one of the
5727 following symbols: `truncation' , `continuation', `overlay-arrow',
5728 `top', `bottom', `up', `down', `one-line', `empty-line', or `unknown'.
5729
5730 BITMAPS is list of symbols (LEFT RIGHT [LEFT1 RIGHT1]) which specifies
5731 the actual bitmap shown in the left or right fringe for the logical
5732 indicator. LEFT and RIGHT are the bitmaps shown in the left and/or
5733 right fringe for the specific indicator. The LEFT1 or RIGHT1 bitmaps
5734 are used only for the `bottom' and `one-line' indicators when the last
5735 (only) line in has no final newline. BITMAPS may also be a single
5736 symbol which is used in both left and right fringes. */);
5737
5738 DEFVAR_PER_BUFFER ("fringe-cursor-alist",
5739 &current_buffer->fringe_cursor_alist, Qnil,
5740 doc: /* *Mapping from logical to physical fringe cursor bitmaps.
5741 The value is an alist where each element (CURSOR . BITMAP)
5742 specifies the fringe bitmaps used to display a specific logical
5743 cursor type in the fringe.
5744
5745 CURSOR specifies the logical cursor type which is one of the following
5746 symbols: `box' , `hollow', `bar', `hbar', or `hollow-small'. The last
5747 one is used to show a hollow cursor on narrow lines display lines
5748 where the normal hollow cursor will not fit.
5749
5750 BITMAP is the corresponding fringe bitmap shown for the logical
5751 cursor type. */);
5752
5705 DEFVAR_PER_BUFFER ("scroll-up-aggressively", 5753 DEFVAR_PER_BUFFER ("scroll-up-aggressively",
5706 &current_buffer->scroll_up_aggressively, Qnil, 5754 &current_buffer->scroll_up_aggressively, Qnil,
5707 doc: /* How far to scroll windows upward. 5755 doc: /* How far to scroll windows upward.
5708 If you move point off the bottom, the window scrolls automatically. 5756 If you move point off the bottom, the window scrolls automatically.
5709 This variable controls how far it scrolls. nil, the default, 5757 This variable controls how far it scrolls. nil, the default,