aboutsummaryrefslogtreecommitdiffstats
path: root/src/buffer.c
diff options
context:
space:
mode:
authorKim F. Storm2004-01-16 18:40:22 +0000
committerKim F. Storm2004-01-16 18:40:22 +0000
commit8e8767f80efed7c5d44f88e8c088ed0a0369c36e (patch)
treed273e46d1031f5f87723b4666a8796b5c4d24ba7 /src/buffer.c
parent77a9cf6944630e8b45d48431f9bd3fb17311cdc7 (diff)
downloademacs-8e8767f80efed7c5d44f88e8c088ed0a0369c36e.tar.gz
emacs-8e8767f80efed7c5d44f88e8c088ed0a0369c36e.zip
(init_buffer_once): Set buffer_defaults and
buffer_local_flags for indicate_buffer_boundaries. (syms_of_buffer): Defvar_per_buffer it, and defvar_lisp_nopro default- variable for it.
Diffstat (limited to 'src/buffer.c')
-rw-r--r--src/buffer.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/buffer.c b/src/buffer.c
index 533e2c9c506..b4c530d49fd 100644
--- a/src/buffer.c
+++ b/src/buffer.c
@@ -4959,6 +4959,7 @@ init_buffer_once ()
4959 buffer_defaults.scroll_bar_width = Qnil; 4959 buffer_defaults.scroll_bar_width = Qnil;
4960 buffer_defaults.vertical_scroll_bar_type = Qt; 4960 buffer_defaults.vertical_scroll_bar_type = Qt;
4961 buffer_defaults.indicate_empty_lines = Qnil; 4961 buffer_defaults.indicate_empty_lines = Qnil;
4962 buffer_defaults.indicate_buffer_boundaries = Qnil;
4962 buffer_defaults.scroll_up_aggressively = Qnil; 4963 buffer_defaults.scroll_up_aggressively = Qnil;
4963 buffer_defaults.scroll_down_aggressively = Qnil; 4964 buffer_defaults.scroll_down_aggressively = Qnil;
4964 buffer_defaults.display_time = Qnil; 4965 buffer_defaults.display_time = Qnil;
@@ -5028,6 +5029,7 @@ init_buffer_once ()
5028 XSETFASTINT (buffer_local_flags.scroll_bar_width, idx); ++idx; 5029 XSETFASTINT (buffer_local_flags.scroll_bar_width, idx); ++idx;
5029 XSETFASTINT (buffer_local_flags.vertical_scroll_bar_type, idx); ++idx; 5030 XSETFASTINT (buffer_local_flags.vertical_scroll_bar_type, idx); ++idx;
5030 XSETFASTINT (buffer_local_flags.indicate_empty_lines, idx); ++idx; 5031 XSETFASTINT (buffer_local_flags.indicate_empty_lines, idx); ++idx;
5032 XSETFASTINT (buffer_local_flags.indicate_buffer_boundaries, idx); ++idx;
5031 XSETFASTINT (buffer_local_flags.scroll_up_aggressively, idx); ++idx; 5033 XSETFASTINT (buffer_local_flags.scroll_up_aggressively, idx); ++idx;
5032 XSETFASTINT (buffer_local_flags.scroll_down_aggressively, idx); ++idx; 5034 XSETFASTINT (buffer_local_flags.scroll_down_aggressively, idx); ++idx;
5033 XSETFASTINT (buffer_local_flags.header_line_format, idx); ++idx; 5035 XSETFASTINT (buffer_local_flags.header_line_format, idx); ++idx;
@@ -5316,6 +5318,11 @@ This is the same as (default-value 'vertical-scroll-bar). */);
5316 doc: /* Default value of `indicate-empty-lines' for buffers that don't override it. 5318 doc: /* Default value of `indicate-empty-lines' for buffers that don't override it.
5317This is the same as (default-value 'indicate-empty-lines). */); 5319This is the same as (default-value 'indicate-empty-lines). */);
5318 5320
5321 DEFVAR_LISP_NOPRO ("default-indicate-buffer-boundaries",
5322 &buffer_defaults.indicate_buffer_boundaries,
5323 doc: /* Default value of `indicate-buffer-boundaries' for buffers that don't override it.
5324This is the same as (default-value 'indicate-buffer-boundaries). */);
5325
5319 DEFVAR_LISP_NOPRO ("default-scroll-up-aggressively", 5326 DEFVAR_LISP_NOPRO ("default-scroll-up-aggressively",
5320 &buffer_defaults.scroll_up_aggressively, 5327 &buffer_defaults.scroll_up_aggressively,
5321 doc: /* Default value of `scroll-up-aggressively'. 5328 doc: /* Default value of `scroll-up-aggressively'.
@@ -5626,6 +5633,14 @@ A value of t means to use the vertical scroll bar type from the window's frame.
5626If non-nil, a bitmap is displayed in the left fringe of a window on 5633If non-nil, a bitmap is displayed in the left fringe of a window on
5627window-systems. */); 5634window-systems. */);
5628 5635
5636 DEFVAR_PER_BUFFER ("indicate-buffer-boundaries",
5637 &current_buffer->indicate_buffer_boundaries, Qnil,
5638 doc: /* *Visually indicate buffer boundaries and scrolling.
5639If non-nil, the first and last line of the buffer are marked in the left and
5640right fringe of a window on window-systems.
5641In addition, if value is t, the top and bottom line of the window are marked
5642with up and down arrow bitmaps in the right fringe if window can be scrolled. */);
5643
5629 DEFVAR_PER_BUFFER ("scroll-up-aggressively", 5644 DEFVAR_PER_BUFFER ("scroll-up-aggressively",
5630 &current_buffer->scroll_up_aggressively, Qnil, 5645 &current_buffer->scroll_up_aggressively, Qnil,
5631 doc: /* How far to scroll windows upward. 5646 doc: /* How far to scroll windows upward.