diff options
| author | Gerd Moellmann | 2000-03-26 16:25:09 +0000 |
|---|---|---|
| committer | Gerd Moellmann | 2000-03-26 16:25:09 +0000 |
| commit | bb2ec97602df08d90f26e02f3d97b429d900d419 (patch) | |
| tree | 633275966b84e707c7d8aeec8dc85df0ccfa1416 /src | |
| parent | f02d8aa0f631a7527d0934f6b0aef2c97aada2f4 (diff) | |
| download | emacs-bb2ec97602df08d90f26e02f3d97b429d900d419.tar.gz emacs-bb2ec97602df08d90f26e02f3d97b429d900d419.zip | |
(reset_buffer): Initialize buffer's cursor_type.
(init_buffer_once): Set default cursor_type value to t.
Mark cursor_type as local everywhere.
(syms_of_buffer): New per-buffer variable cursor-type.
Diffstat (limited to 'src')
| -rw-r--r-- | src/buffer.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/buffer.c b/src/buffer.c index 268d8bb5519..b243ab9415e 100644 --- a/src/buffer.c +++ b/src/buffer.c | |||
| @@ -543,6 +543,7 @@ reset_buffer (b) | |||
| 543 | b->extra2 = Qnil; | 543 | b->extra2 = Qnil; |
| 544 | b->extra3 = Qnil; | 544 | b->extra3 = Qnil; |
| 545 | b->enable_multibyte_characters = buffer_defaults.enable_multibyte_characters; | 545 | b->enable_multibyte_characters = buffer_defaults.enable_multibyte_characters; |
| 546 | b->cursor_type = buffer_defaults.cursor_type; | ||
| 546 | } | 547 | } |
| 547 | 548 | ||
| 548 | /* Reset buffer B's local variables info. | 549 | /* Reset buffer B's local variables info. |
| @@ -3894,6 +3895,7 @@ init_buffer_once () | |||
| 3894 | buffer_defaults.truncate_lines = Qnil; | 3895 | buffer_defaults.truncate_lines = Qnil; |
| 3895 | buffer_defaults.ctl_arrow = Qt; | 3896 | buffer_defaults.ctl_arrow = Qt; |
| 3896 | buffer_defaults.direction_reversed = Qnil; | 3897 | buffer_defaults.direction_reversed = Qnil; |
| 3898 | buffer_defaults.cursor_type = Qt; | ||
| 3897 | 3899 | ||
| 3898 | #ifdef DOS_NT | 3900 | #ifdef DOS_NT |
| 3899 | buffer_defaults.buffer_file_type = Qnil; /* TEXT */ | 3901 | buffer_defaults.buffer_file_type = Qnil; /* TEXT */ |
| @@ -3937,6 +3939,7 @@ init_buffer_once () | |||
| 3937 | XSETINT (buffer_local_flags.display_count, -1); | 3939 | XSETINT (buffer_local_flags.display_count, -1); |
| 3938 | XSETINT (buffer_local_flags.display_time, -1); | 3940 | XSETINT (buffer_local_flags.display_time, -1); |
| 3939 | 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); | ||
| 3940 | 3943 | ||
| 3941 | idx = 1; | 3944 | idx = 1; |
| 3942 | XSETFASTINT (buffer_local_flags.mode_line_format, idx); ++idx; | 3945 | XSETFASTINT (buffer_local_flags.mode_line_format, idx); ++idx; |
| @@ -4705,6 +4708,16 @@ and disregard a `read-only' text property if the property value\n\ | |||
| 4705 | is a member of the list."); | 4708 | is a member of the list."); |
| 4706 | Vinhibit_read_only = Qnil; | 4709 | Vinhibit_read_only = Qnil; |
| 4707 | 4710 | ||
| 4711 | DEFVAR_PER_BUFFER ("cursor-type", ¤t_buffer->cursor_type, Qnil, | ||
| 4712 | "Cursor to use in window displaying this buffer.\n\ | ||
| 4713 | Values are interpreted as follows:\n\ | ||
| 4714 | \n\ | ||
| 4715 | t use the cursor specified for the frame\n\ | ||
| 4716 | nil don't display a cursor\n\ | ||
| 4717 | `bar' display a bar cursor with default width\n\ | ||
| 4718 | (bar . WIDTH) display a bar cursor with width WIDTH\n\ | ||
| 4719 | others display a box cursor."); | ||
| 4720 | |||
| 4708 | DEFVAR_LISP ("kill-buffer-query-functions", &Vkill_buffer_query_functions, | 4721 | DEFVAR_LISP ("kill-buffer-query-functions", &Vkill_buffer_query_functions, |
| 4709 | "List of functions called with no args to query before killing a buffer."); | 4722 | "List of functions called with no args to query before killing a buffer."); |
| 4710 | Vkill_buffer_query_functions = Qnil; | 4723 | Vkill_buffer_query_functions = Qnil; |