aboutsummaryrefslogtreecommitdiffstats
path: root/src/buffer.c
diff options
context:
space:
mode:
authorKaroly Lorentey2004-01-22 15:37:19 +0000
committerKaroly Lorentey2004-01-22 15:37:19 +0000
commit2a36494c42a1963846ea8c2dde48a7450d433c2a (patch)
tree59be675dcc23b117a04a5b16cc82d73bcb6abbc9 /src/buffer.c
parente9cda8277618ce4e2644e852539474b7b67f09e3 (diff)
parente555f8d5a4cfa2a1496ed61795ab6dc143600698 (diff)
downloademacs-2a36494c42a1963846ea8c2dde48a7450d433c2a.tar.gz
emacs-2a36494c42a1963846ea8c2dde48a7450d433c2a.zip
Merged in changes from CVS HEAD
Patches applied: * miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-33 Update from CVS * miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-34 Update from CVS * miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-35 Update from CVS * miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-36 Update from CVS * miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-37 Update from CVS * miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-38 Update from CVS * miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-39 Update from CVS * miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-40 Update from CVS * miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-41 Make fringe-drawing stuff compile without a window-system * miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-42 Update from CVS * miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-43 Update from CVS * miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-44 Update from CVS * miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-45 Update from CVS * miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-46 Update from CVS * miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-47 Update from CVS * miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-48 Update from CVS * miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-49 Update from CVS * miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-50 Update from CVS git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-59
Diffstat (limited to 'src/buffer.c')
-rw-r--r--src/buffer.c22
1 files changed, 19 insertions, 3 deletions
diff --git a/src/buffer.c b/src/buffer.c
index d0830c83a51..d14db61c2a9 100644
--- a/src/buffer.c
+++ b/src/buffer.c
@@ -1,5 +1,5 @@
1/* Buffer manipulation primitives for GNU Emacs. 1/* Buffer manipulation primitives for GNU Emacs.
2 Copyright (C) 1985,86,87,88,89,93,94,95,97,98, 1999, 2000, 2001, 02, 2003 2 Copyright (C) 1985,86,87,88,89,93,94,95,97,98, 1999, 2000, 2001, 02, 03, 2004
3 Free Software Foundation, Inc. 3 Free Software Foundation, Inc.
4 4
5This file is part of GNU Emacs. 5This file is part of GNU Emacs.
@@ -67,7 +67,7 @@ struct buffer *all_buffers;
67 Setting the default value also goes through the alist of buffers 67 Setting the default value also goes through the alist of buffers
68 and stores into each buffer that does not say it has a local value. */ 68 and stores into each buffer that does not say it has a local value. */
69 69
70struct buffer buffer_defaults; 70DECL_ALIGN (struct buffer, buffer_defaults);
71 71
72/* A Lisp_Object pointer to the above, used for staticpro */ 72/* A Lisp_Object pointer to the above, used for staticpro */
73 73
@@ -97,7 +97,8 @@ struct buffer buffer_local_flags;
97/* This structure holds the names of symbols whose values may be 97/* This structure holds the names of symbols whose values may be
98 buffer-local. It is indexed and accessed in the same way as the above. */ 98 buffer-local. It is indexed and accessed in the same way as the above. */
99 99
100struct buffer buffer_local_symbols; 100DECL_ALIGN (struct buffer, buffer_local_symbols);
101
101/* A Lisp_Object pointer to the above, used for staticpro */ 102/* A Lisp_Object pointer to the above, used for staticpro */
102static Lisp_Object Vbuffer_local_symbols; 103static Lisp_Object Vbuffer_local_symbols;
103 104
@@ -4959,6 +4960,7 @@ init_buffer_once ()
4959 buffer_defaults.scroll_bar_width = Qnil; 4960 buffer_defaults.scroll_bar_width = Qnil;
4960 buffer_defaults.vertical_scroll_bar_type = Qt; 4961 buffer_defaults.vertical_scroll_bar_type = Qt;
4961 buffer_defaults.indicate_empty_lines = Qnil; 4962 buffer_defaults.indicate_empty_lines = Qnil;
4963 buffer_defaults.indicate_buffer_boundaries = Qnil;
4962 buffer_defaults.scroll_up_aggressively = Qnil; 4964 buffer_defaults.scroll_up_aggressively = Qnil;
4963 buffer_defaults.scroll_down_aggressively = Qnil; 4965 buffer_defaults.scroll_down_aggressively = Qnil;
4964 buffer_defaults.display_time = Qnil; 4966 buffer_defaults.display_time = Qnil;
@@ -5028,6 +5030,7 @@ init_buffer_once ()
5028 XSETFASTINT (buffer_local_flags.scroll_bar_width, idx); ++idx; 5030 XSETFASTINT (buffer_local_flags.scroll_bar_width, idx); ++idx;
5029 XSETFASTINT (buffer_local_flags.vertical_scroll_bar_type, idx); ++idx; 5031 XSETFASTINT (buffer_local_flags.vertical_scroll_bar_type, idx); ++idx;
5030 XSETFASTINT (buffer_local_flags.indicate_empty_lines, idx); ++idx; 5032 XSETFASTINT (buffer_local_flags.indicate_empty_lines, idx); ++idx;
5033 XSETFASTINT (buffer_local_flags.indicate_buffer_boundaries, idx); ++idx;
5031 XSETFASTINT (buffer_local_flags.scroll_up_aggressively, idx); ++idx; 5034 XSETFASTINT (buffer_local_flags.scroll_up_aggressively, idx); ++idx;
5032 XSETFASTINT (buffer_local_flags.scroll_down_aggressively, idx); ++idx; 5035 XSETFASTINT (buffer_local_flags.scroll_down_aggressively, idx); ++idx;
5033 XSETFASTINT (buffer_local_flags.header_line_format, idx); ++idx; 5036 XSETFASTINT (buffer_local_flags.header_line_format, idx); ++idx;
@@ -5316,6 +5319,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. 5319 doc: /* Default value of `indicate-empty-lines' for buffers that don't override it.
5317This is the same as (default-value 'indicate-empty-lines). */); 5320This is the same as (default-value 'indicate-empty-lines). */);
5318 5321
5322 DEFVAR_LISP_NOPRO ("default-indicate-buffer-boundaries",
5323 &buffer_defaults.indicate_buffer_boundaries,
5324 doc: /* Default value of `indicate-buffer-boundaries' for buffers that don't override it.
5325This is the same as (default-value 'indicate-buffer-boundaries). */);
5326
5319 DEFVAR_LISP_NOPRO ("default-scroll-up-aggressively", 5327 DEFVAR_LISP_NOPRO ("default-scroll-up-aggressively",
5320 &buffer_defaults.scroll_up_aggressively, 5328 &buffer_defaults.scroll_up_aggressively,
5321 doc: /* Default value of `scroll-up-aggressively'. 5329 doc: /* Default value of `scroll-up-aggressively'.
@@ -5626,6 +5634,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 5634If non-nil, a bitmap is displayed in the left fringe of a window on
5627window-systems. */); 5635window-systems. */);
5628 5636
5637 DEFVAR_PER_BUFFER ("indicate-buffer-boundaries",
5638 &current_buffer->indicate_buffer_boundaries, Qnil,
5639 doc: /* *Visually indicate buffer boundaries and scrolling.
5640If non-nil, the first and last line of the buffer are marked in the left and
5641right fringe of a window on window-systems.
5642In addition, if value is t, the top and bottom line of the window are marked
5643with up and down arrow bitmaps in the right fringe if window can be scrolled. */);
5644
5629 DEFVAR_PER_BUFFER ("scroll-up-aggressively", 5645 DEFVAR_PER_BUFFER ("scroll-up-aggressively",
5630 &current_buffer->scroll_up_aggressively, Qnil, 5646 &current_buffer->scroll_up_aggressively, Qnil,
5631 doc: /* How far to scroll windows upward. 5647 doc: /* How far to scroll windows upward.