From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Tak Ota Newsgroups: gmane.emacs.devel Subject: controlling hollow box cursor Date: Tue, 02 Apr 2002 08:26:55 -0800 (PST) Organization: Sony Electronics Inc. Sender: emacs-devel-admin@gnu.org Message-ID: <20020402.082655.60851184.Takaaki.Ota@am.sony.com> NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: main.gmane.org 1017775828 9092 127.0.0.1 (2 Apr 2002 19:30:28 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Tue, 2 Apr 2002 19:30:28 +0000 (UTC) Original-Received: from quimby.gnus.org ([80.91.224.244]) by main.gmane.org with esmtp (Exim 3.33 #1 (Debian)) id 16sTzA-0002MX-00 for ; Tue, 02 Apr 2002 21:30:28 +0200 Original-Received: from fencepost.gnu.org ([199.232.76.164]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 16sUAw-0002Xm-00 for ; Tue, 02 Apr 2002 21:42:38 +0200 Original-Received: from localhost ([127.0.0.1] helo=fencepost.gnu.org) by fencepost.gnu.org with esmtp (Exim 3.34 #1 (Debian)) id 16sTyq-0004hp-00; Tue, 02 Apr 2002 14:30:08 -0500 Original-Received: from uf.znet.com ([207.167.64.14]) by fencepost.gnu.org with esmtp (Exim 3.34 #1 (Debian)) id 16sT9g-0005t5-00 for ; Tue, 02 Apr 2002 13:37:16 -0500 Original-Received: from localhost (lats08-134.znet.net [207.167.97.134]) by uf.znet.com (8.12.2/8.12.2/jjb-uf) with ESMTP id g32Ib4o2022087 for ; Tue, 2 Apr 2002 10:37:06 -0800 (PST) X-Envelope-From: Takaaki.Ota@am.sony.com X-Envelope-To: Original-To: emacs-devel@gnu.org X-Telephone: +1-858-942-3239 X-Fax------: +1-858-942-9142 X-SnailMail: 16450 West Bernardo Drive MZ7205, San Diego, CA 92127-1804 X-Mailer: Mew version 3.0.54 on Emacs 21.2.50.1 / Mule 5.0 (SAKAKI) Errors-To: emacs-devel-admin@gnu.org X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Emacs development discussions. List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.emacs.devel:2324 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:2324 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;