comparison src/buffer.c @ 62069:a0a348c8b14b

(init_buffer_once): Set cursor_in_non_selected_windows default value. (syms_of_buffer): Add default-cursor-in-non-selected-windows. Fix type of cursor-in-non-selected-windows.
author Kim F. Storm <storm@cua.dk>
date Wed, 04 May 2005 22:10:14 +0000
parents bc82609e1655
children 71f6142fcfb9 b151ec53c504 62afea0771d8
comparison
equal deleted inserted replaced
62068:6c7102728f30 62069:a0a348c8b14b
1 /* Buffer manipulation primitives for GNU Emacs. 1 /* Buffer manipulation primitives for GNU Emacs.
2 Copyright (C) 1985, 86, 87, 88, 89, 93, 94, 95, 97, 98, 99, 2 Copyright (C) 1985, 86, 87, 88, 89, 93, 94, 95, 97, 98, 99,
3 2000, 01, 02, 03, 04, 2005 Free Software Foundation, Inc. 3 2000, 01, 02, 03, 04, 2005 Free Software Foundation, Inc.
4 4
5 This file is part of GNU Emacs. 5 This file is part of GNU Emacs.
6 6
7 GNU Emacs is free software; you can redistribute it and/or modify 7 GNU Emacs is free software; you can redistribute it and/or modify
8 it under the terms of the GNU General Public License as published by 8 it under the terms of the GNU General Public License as published by
4970 buffer_defaults.truncate_lines = Qnil; 4970 buffer_defaults.truncate_lines = Qnil;
4971 buffer_defaults.ctl_arrow = Qt; 4971 buffer_defaults.ctl_arrow = Qt;
4972 buffer_defaults.direction_reversed = Qnil; 4972 buffer_defaults.direction_reversed = Qnil;
4973 buffer_defaults.cursor_type = Qt; 4973 buffer_defaults.cursor_type = Qt;
4974 buffer_defaults.extra_line_spacing = Qnil; 4974 buffer_defaults.extra_line_spacing = Qnil;
4975 buffer_defaults.cursor_in_non_selected_windows = Qt;
4975 4976
4976 #ifdef DOS_NT 4977 #ifdef DOS_NT
4977 buffer_defaults.buffer_file_type = Qnil; /* TEXT */ 4978 buffer_defaults.buffer_file_type = Qnil; /* TEXT */
4978 #endif 4979 #endif
4979 buffer_defaults.enable_multibyte_characters = Qt; 4980 buffer_defaults.enable_multibyte_characters = Qt;
5257 5258
5258 DEFVAR_LISP_NOPRO ("default-line-spacing", 5259 DEFVAR_LISP_NOPRO ("default-line-spacing",
5259 &buffer_defaults.extra_line_spacing, 5260 &buffer_defaults.extra_line_spacing,
5260 doc: /* Default value of `line-spacing' for buffers that don't override it. 5261 doc: /* Default value of `line-spacing' for buffers that don't override it.
5261 This is the same as (default-value 'line-spacing). */); 5262 This is the same as (default-value 'line-spacing). */);
5263
5264 DEFVAR_LISP_NOPRO ("default-cursor-in-non-selected-windows",
5265 &buffer_defaults.cursor_in_non_selected_windows,
5266 doc: /* Default value of `cursor-in-non-selected-windows'.
5267 This is the same as (default-value 'cursor-in-non-selected-windows). */);
5262 5268
5263 DEFVAR_LISP_NOPRO ("default-abbrev-mode", 5269 DEFVAR_LISP_NOPRO ("default-abbrev-mode",
5264 &buffer_defaults.abbrev_mode, 5270 &buffer_defaults.abbrev_mode,
5265 doc: /* Default value of `abbrev-mode' for buffers that do not override it. 5271 doc: /* Default value of `abbrev-mode' for buffers that do not override it.
5266 This is the same as (default-value 'abbrev-mode). */); 5272 This is the same as (default-value 'abbrev-mode). */);
5938 The space is measured in pixels, and put below lines on window systems. 5944 The space is measured in pixels, and put below lines on window systems.
5939 If value is a floating point number, it specifies the spacing relative 5945 If value is a floating point number, it specifies the spacing relative
5940 to the default frame line height. */); 5946 to the default frame line height. */);
5941 5947
5942 DEFVAR_PER_BUFFER ("cursor-in-non-selected-windows", 5948 DEFVAR_PER_BUFFER ("cursor-in-non-selected-windows",
5943 &current_buffer->cursor_in_non_selected_windows, Qt, 5949 &current_buffer->cursor_in_non_selected_windows, Qnil,
5944 doc: /* *Cursor type to display in non-selected windows. 5950 doc: /* *Cursor type to display in non-selected windows.
5945 t means to use hollow box cursor. See `cursor-type' for other values. */); 5951 t means to use hollow box cursor. See `cursor-type' for other values. */);
5946 5952
5947 DEFVAR_LISP ("kill-buffer-query-functions", &Vkill_buffer_query_functions, 5953 DEFVAR_LISP ("kill-buffer-query-functions", &Vkill_buffer_query_functions,
5948 doc: /* List of functions called with no args to query before killing a buffer. */); 5954 doc: /* List of functions called with no args to query before killing a buffer. */);