Mercurial > emacs
comparison src/buffer.c @ 28322:986882bafaf1
(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.
author | Gerd Moellmann <gerd@gnu.org> |
---|---|
date | Sun, 26 Mar 2000 16:25:09 +0000 |
parents | c46e609d887a |
children | 8abeccb78576 |
comparison
equal
deleted
inserted
replaced
28321:fc0a61d81fc5 | 28322:986882bafaf1 |
---|---|
541 XSETINT (b->display_count, 0); | 541 XSETINT (b->display_count, 0); |
542 b->display_time = Qnil; | 542 b->display_time = Qnil; |
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. |
549 Don't use this on a buffer that has already been in use; | 550 Don't use this on a buffer that has already been in use; |
550 it does not treat permanent locals consistently. | 551 it does not treat permanent locals consistently. |
3892 | 3893 |
3893 XSETFASTINT (buffer_defaults.tab_width, 8); | 3894 XSETFASTINT (buffer_defaults.tab_width, 8); |
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 */ |
3900 #endif | 3902 #endif |
3901 buffer_defaults.enable_multibyte_characters = Qt; | 3903 buffer_defaults.enable_multibyte_characters = Qt; |
3935 XSETINT (buffer_local_flags.invisibility_spec, -1); | 3937 XSETINT (buffer_local_flags.invisibility_spec, -1); |
3936 XSETINT (buffer_local_flags.file_format, -1); | 3938 XSETINT (buffer_local_flags.file_format, -1); |
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; |
3943 XSETFASTINT (buffer_local_flags.abbrev_mode, idx); ++idx; | 3946 XSETFASTINT (buffer_local_flags.abbrev_mode, idx); ++idx; |
3944 XSETFASTINT (buffer_local_flags.overwrite_mode, idx); ++idx; | 3947 XSETFASTINT (buffer_local_flags.overwrite_mode, idx); ++idx; |
4703 text properties. If the value is a list, disregard `buffer-read-only'\n\ | 4706 text properties. If the value is a list, disregard `buffer-read-only'\n\ |
4704 and disregard a `read-only' text property if the property value\n\ | 4707 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; |
4711 | 4724 |
4712 defsubr (&Sbuffer_live_p); | 4725 defsubr (&Sbuffer_live_p); |