aboutsummaryrefslogtreecommitdiffstats
path: root/src/buffer.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/buffer.c')
-rw-r--r--src/buffer.c22
1 files changed, 22 insertions, 0 deletions
diff --git a/src/buffer.c b/src/buffer.c
index 0c46b201586..9facc4b7ab8 100644
--- a/src/buffer.c
+++ b/src/buffer.c
@@ -4719,6 +4719,7 @@ init_buffer_once (void)
4719#ifdef HAVE_TREE_SITTER 4719#ifdef HAVE_TREE_SITTER
4720 XSETFASTINT (BVAR (&buffer_local_flags, ts_parser_list), idx); ++idx; 4720 XSETFASTINT (BVAR (&buffer_local_flags, ts_parser_list), idx); ++idx;
4721#endif 4721#endif
4722 XSETFASTINT (BVAR (&buffer_local_flags, text_conversion_style), idx); ++idx;
4722 XSETFASTINT (BVAR (&buffer_local_flags, cursor_in_non_selected_windows), idx); ++idx; 4723 XSETFASTINT (BVAR (&buffer_local_flags, cursor_in_non_selected_windows), idx); ++idx;
4723 4724
4724 /* buffer_local_flags contains no pointers, so it's safe to treat it 4725 /* buffer_local_flags contains no pointers, so it's safe to treat it
@@ -4790,6 +4791,7 @@ init_buffer_once (void)
4790#ifdef HAVE_TREE_SITTER 4791#ifdef HAVE_TREE_SITTER
4791 bset_ts_parser_list (&buffer_defaults, Qnil); 4792 bset_ts_parser_list (&buffer_defaults, Qnil);
4792#endif 4793#endif
4794 bset_text_conversion_style (&buffer_defaults, Qnil);
4793 bset_cursor_in_non_selected_windows (&buffer_defaults, Qt); 4795 bset_cursor_in_non_selected_windows (&buffer_defaults, Qt);
4794 4796
4795 bset_enable_multibyte_characters (&buffer_defaults, Qt); 4797 bset_enable_multibyte_characters (&buffer_defaults, Qt);
@@ -5866,6 +5868,26 @@ If t, displays a cursor related to the usual cursor type
5866You can also specify the cursor type as in the `cursor-type' variable. 5868You can also specify the cursor type as in the `cursor-type' variable.
5867Use Custom to set this variable and update the display. */); 5869Use Custom to set this variable and update the display. */);
5868 5870
5871 /* While this is defined here, each *term.c module must implement
5872 the logic itself. */
5873
5874 DEFVAR_PER_BUFFER ("text-conversion-style", &BVAR (current_buffer,
5875 text_conversion_style),
5876 Qnil,
5877 doc: /* How the on screen keyboard's input method should insert in this buffer.
5878When nil, the input method will be disabled and an ordinary keyboard
5879will be displayed in its place.
5880When the symbol `action', the input method will insert text directly, but
5881will send `return' key events instead of inserting new line characters.
5882Any other value means that the input method will insert text directly.
5883
5884If you need to make non-buffer local changes to this variable, use
5885`overriding-text-conversion-style', which see.
5886
5887This variable does not take immediate effect when set; rather, it
5888takes effect upon the next redisplay after the selected window or
5889buffer changes. */);
5890
5869 DEFVAR_LISP ("kill-buffer-query-functions", Vkill_buffer_query_functions, 5891 DEFVAR_LISP ("kill-buffer-query-functions", Vkill_buffer_query_functions,
5870 doc: /* List of functions called with no args to query before killing a buffer. 5892 doc: /* List of functions called with no args to query before killing a buffer.
5871The buffer being killed will be current while the functions are running. 5893The buffer being killed will be current while the functions are running.