From: Richard M. Stallman Date: Mon, 2 May 2005 17:10:29 +0000 (+0000) Subject: (syms_of_buffer): Define cursor-in-non-selected-windows. X-Git-Tag: ttn-vms-21-2-B4~572 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=0124c5bdea37ac8b42b22472e3a0dcfbf7ea795a;p=emacs.git (syms_of_buffer): Define cursor-in-non-selected-windows. --- diff --git a/src/ChangeLog b/src/ChangeLog index 65151ae99ce..100ac96481d 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,15 @@ +2005-05-02 Richard M. Stallman + + * buffer.c (syms_of_buffer): Define cursor-in-non-selected-windows. + + * buffer.h (struct buffer): Add cursor_in_non_selected_windows slot. + + * xdisp.c (Vcursor_in_non_selected_windows) + (Qcursor_in_non_selected_windows): Vars deleted. + (syms_of_xdisp): Don't initialize them. + (get_window_cursor_type): Use cursor_in_non_selected_windows + buffer slot. + 2005-05-02 Kim F. Storm * macros.c (executing_kbd_macro_index): Rename from diff --git a/src/buffer.c b/src/buffer.c index 1fba9136375..e71c590faae 100644 --- a/src/buffer.c +++ b/src/buffer.c @@ -5068,6 +5068,7 @@ init_buffer_once () XSETFASTINT (buffer_local_flags.header_line_format, idx); ++idx; XSETFASTINT (buffer_local_flags.cursor_type, idx); ++idx; XSETFASTINT (buffer_local_flags.extra_line_spacing, idx); ++idx; + XSETFASTINT (buffer_local_flags.cursor_in_non_selected_windows, idx); ++idx; /* Need more room? */ if (idx >= MAX_PER_BUFFER_VARS) @@ -5938,6 +5939,11 @@ The space is measured in pixels, and put below lines on window systems. If value is a floating point number, it specifies the spacing relative to the default frame line height. */); + DEFVAR_PER_BUFFER ("cursor-in-non-selected-windows", + ¤t_buffer->cursor_in_non_selected_windows, Qt, + doc: /* *Cursor type to display in non-selected windows. +t means to use hollow box cursor. See `cursor-type' for other values. */); + DEFVAR_LISP ("kill-buffer-query-functions", &Vkill_buffer_query_functions, doc: /* List of functions called with no args to query before killing a buffer. */); Vkill_buffer_query_functions = Qnil;