aboutsummaryrefslogtreecommitdiffstats
path: root/src/buffer.c
diff options
context:
space:
mode:
authorGerd Moellmann2000-03-26 18:45:57 +0000
committerGerd Moellmann2000-03-26 18:45:57 +0000
commitbd96bd79eb90901860c626ada2040b4d68ed7f5d (patch)
tree8edee550bb1435eba5fe43b78fd5cea8727827d0 /src/buffer.c
parent082527febb488157b6a9fdef0b2c8d4341274da6 (diff)
downloademacs-bd96bd79eb90901860c626ada2040b4d68ed7f5d.tar.gz
emacs-bd96bd79eb90901860c626ada2040b4d68ed7f5d.zip
(syms_of_buffer): Add default-cursor-type.
(init_buffer_once): Don't let cursor_type have a local value in every buffer.
Diffstat (limited to 'src/buffer.c')
-rw-r--r--src/buffer.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/buffer.c b/src/buffer.c
index b243ab9415e..b57b9d8b183 100644
--- a/src/buffer.c
+++ b/src/buffer.c
@@ -3939,7 +3939,6 @@ init_buffer_once ()
3939 XSETINT (buffer_local_flags.display_count, -1); 3939 XSETINT (buffer_local_flags.display_count, -1);
3940 XSETINT (buffer_local_flags.display_time, -1); 3940 XSETINT (buffer_local_flags.display_time, -1);
3941 XSETINT (buffer_local_flags.enable_multibyte_characters, -1); 3941 XSETINT (buffer_local_flags.enable_multibyte_characters, -1);
3942 XSETINT (buffer_local_flags.cursor_type, -1);
3943 3942
3944 idx = 1; 3943 idx = 1;
3945 XSETFASTINT (buffer_local_flags.mode_line_format, idx); ++idx; 3944 XSETFASTINT (buffer_local_flags.mode_line_format, idx); ++idx;
@@ -3976,6 +3975,7 @@ init_buffer_once ()
3976 XSETFASTINT (buffer_local_flags.scroll_up_aggressively, idx); ++idx; 3975 XSETFASTINT (buffer_local_flags.scroll_up_aggressively, idx); ++idx;
3977 XSETFASTINT (buffer_local_flags.scroll_down_aggressively, idx); ++idx; 3976 XSETFASTINT (buffer_local_flags.scroll_down_aggressively, idx); ++idx;
3978 XSETFASTINT (buffer_local_flags.header_line_format, idx); ++idx; 3977 XSETFASTINT (buffer_local_flags.header_line_format, idx); ++idx;
3978 XSETFASTINT (buffer_local_flags.cursor_type, idx); ++idx;
3979 3979
3980 /* Need more room? */ 3980 /* Need more room? */
3981 if (idx >= MAX_BUFFER_LOCAL_VARS) 3981 if (idx >= MAX_BUFFER_LOCAL_VARS)
@@ -4131,6 +4131,10 @@ This is the same as (default-value 'mode-line-format).");
4131 "Default value of `header-line-format' for buffers that don't override it.\n\ 4131 "Default value of `header-line-format' for buffers that don't override it.\n\
4132This is the same as (default-value 'header-line-format)."); 4132This is the same as (default-value 'header-line-format).");
4133 4133
4134 DEFVAR_LISP_NOPRO ("default-cursor-type", &buffer_defaults.cursor_type,
4135 "Default value of `cursor-type' for buffers that don't override it.\n\
4136This is the same as (default-value 'cursor-type).");
4137
4134 DEFVAR_LISP_NOPRO ("default-abbrev-mode", 4138 DEFVAR_LISP_NOPRO ("default-abbrev-mode",
4135 &buffer_defaults.abbrev_mode, 4139 &buffer_defaults.abbrev_mode,
4136 "Default value of `abbrev-mode' for buffers that do not override it.\n\ 4140 "Default value of `abbrev-mode' for buffers that do not override it.\n\