(syms_of_buffer): Define cursor-in-non-selected-windows.
authorRichard M. Stallman <rms@gnu.org>
Mon, 2 May 2005 17:10:29 +0000 (17:10 +0000)
committerRichard M. Stallman <rms@gnu.org>
Mon, 2 May 2005 17:10:29 +0000 (17:10 +0000)
src/ChangeLog
src/buffer.c

index 65151ae..100ac96 100644 (file)
@@ -1,3 +1,15 @@
+2005-05-02  Richard M. Stallman  <rms@gnu.org>
+
+       * 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  <storm@cua.dk>
 
        * macros.c (executing_kbd_macro_index): Rename from
index 1fba913..e71c590 100644 (file)
@@ -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",
+                    &current_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;