emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

controlling hollow box cursor


From: Tak Ota
Subject: controlling hollow box cursor
Date: Tue, 02 Apr 2002 08:26:55 -0800 (PST)

I've asked this before and haven't received any comments.  Could
someone comment on the following change?  The purpose of this is to
control the appearance/disappearance of hollow box cursor by the
variable `cursor-in-non-selected-windows'.  You can't comment before
trying thought, because the effect is fairly subjective.

-Tak

*** ../../tmp/emacs-21.2.50/src/xterm.c Tue Apr  2 07:10:36 2002
--- xterm.c     Tue Apr  2 07:29:28 2002
***************
*** 11677,11683 ****
                                                       &new_cursor_width);
          if (w->cursor_off_p)
            {
!             if (new_cursor_type == FILLED_BOX_CURSOR)
                new_cursor_type = HOLLOW_BOX_CURSOR;
              else if (new_cursor_type == BAR_CURSOR && new_cursor_width > 1)
                new_cursor_width = 1;
--- 11677,11683 ----
                                                       &new_cursor_width);
          if (w->cursor_off_p)
            {
!             if (new_cursor_type == FILLED_BOX_CURSOR && cursor_non_selected)
                new_cursor_type = HOLLOW_BOX_CURSOR;
              else if (new_cursor_type == BAR_CURSOR && new_cursor_width > 1)
                new_cursor_width = 1;

*** ../../tmp/emacs-21.2.50/src/w32term.c       Mon Apr  1 07:47:11 2002
--- w32term.c   Tue Apr  2 07:29:11 2002
***************
*** 9774,9780 ****
                                                       &new_cursor_width);
          if (w->cursor_off_p)
            {
!             if (new_cursor_type == FILLED_BOX_CURSOR)
                new_cursor_type = HOLLOW_BOX_CURSOR;
              else if (new_cursor_type == BAR_CURSOR && new_cursor_width > 1)
                new_cursor_width = 1;
--- 9774,9780 ----
                                                       &new_cursor_width);
          if (w->cursor_off_p)
            {
!             if (new_cursor_type == FILLED_BOX_CURSOR && cursor_non_selected)
                new_cursor_type = HOLLOW_BOX_CURSOR;
              else if (new_cursor_type == BAR_CURSOR && new_cursor_width > 1)
                new_cursor_width = 1;



reply via email to

[Prev in Thread] Current Thread [Next in Thread]