aboutsummaryrefslogtreecommitdiffstats
path: root/src
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
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')
-rw-r--r--src/ChangeLog4
-rw-r--r--src/buffer.c6
2 files changed, 9 insertions, 1 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index c6e170ec30b..10948007c83 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,5 +1,9 @@
12000-03-26 Gerd Moellmann <gerd@gnu.org> 12000-03-26 Gerd Moellmann <gerd@gnu.org>
2 2
3 * buffer.c (syms_of_buffer): Add default-cursor-type.
4 (init_buffer_once): Don't let cursor_type have a local value
5 in every buffer.
6
3 * xterm.c (x_display_and_set_cursor): Choose cursor depending 7 * xterm.c (x_display_and_set_cursor): Choose cursor depending
4 on buffer-local value of cursor_type. 8 on buffer-local value of cursor_type.
5 (x_draw_bar_cursor): Add parameter WIDTH. 9 (x_draw_bar_cursor): Add parameter WIDTH.
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\