[5253] in testers

home help back first fref pref prev next nref lref last post

emacs: cursor-in-non-selected-windows

daemon@ATHENA.MIT.EDU (Jacob Morzinski)
Sat Jun 29 02:39:36 2002

Message-Id: <200206290639.CAA25178@quiche-lorraine.mit.edu>
To: testers@MIT.EDU
Mime-Version: 1.0 (generated by tm-edit 7.106)
Content-Type: multipart/mixed;
 boundary="Multipart_Sat_Jun_29_02:36:39_2002-1"
Content-Transfer-Encoding: 7bit
Date: Sat, 29 Jun 2002 02:39:32 -0400
From: "Jacob Morzinski" <jmorzins@MIT.EDU>

--Multipart_Sat_Jun_29_02:36:39_2002-1
Content-Type: text/plain; charset=US-ASCII

One thing that bugs me about emacs 21 is the way shadow cursors are
visible in inactive windows.  There is a variable that is supposed
to turn these off (cursor-in-non-selected-windows), but emacs 21.1
forgets to check the variable when prompting the user for y-or-n-p
input from the minibuffer, and so the cursors pop up from time to
time.

I don't want to see them ever.  Emacs 21.2 fixed the oversight, the
attached patch is the three lines from v21.2's xterm.c that will
make cursor-in-non-selected-windows work properly.  I'm submitting
it in the hope that you'll consider putting it in the release.


I've tested the patch on a 9.1 linux machine, running emacs with
  src/emacs -q --no-site-file
and then evaluating the elisp:
  (setq cursor-in-non-selected-windows nil)
  (y-or-n-p "Can you see a shadow cursor? ")


-Jake



--Multipart_Sat_Jun_29_02:36:39_2002-1
Content-Type: application/octet-stream; type=patch
Content-Disposition: attachment; filename="xterm.c.patch"
Content-Transfer-Encoding: 8bit

--- xterm.c.orig	Fri Jun 28 00:36:12 2002
+++ xterm.c	Fri Jun 28 00:36:14 2002
@@ -11506,8 +11506,10 @@
     {
       if (w == XWINDOW (echo_area_window))
 	new_cursor_type = FRAME_DESIRED_CURSOR (f);
-      else
+      else if (cursor_in_non_selected_windows)
 	new_cursor_type = HOLLOW_BOX_CURSOR;
+      else
+	new_cursor_type = NO_CURSOR;
     }
   else
     {

--Multipart_Sat_Jun_29_02:36:39_2002-1--

home help back first fref pref prev next nref lref last post