From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: storm@cua.dk (Kim F. Storm) Newsgroups: gmane.emacs.devel Subject: Re: controlling hollow box cursor Date: 03 Apr 2002 00:11:38 +0200 Sender: emacs-devel-admin@gnu.org Message-ID: <5xit79hht1.fsf@kfs2.cua.dk> References: <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 X-Trace: main.gmane.org 1017787412 25275 127.0.0.1 (2 Apr 2002 22:43:32 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Tue, 2 Apr 2002 22:43:32 +0000 (UTC) Cc: emacs-devel@gnu.org Original-Received: from quimby.gnus.org ([80.91.224.244]) by main.gmane.org with esmtp (Exim 3.33 #1 (Debian)) id 16sX00-0006ZY-00 for ; Wed, 03 Apr 2002 00:43:32 +0200 Original-Received: from fencepost.gnu.org ([199.232.76.164]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 16sXBq-00073W-00 for ; Wed, 03 Apr 2002 00:55:46 +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 16sWVd-0003yE-00; Tue, 02 Apr 2002 17:12:09 -0500 Original-Received: from mail.filanet.dk ([195.215.206.179]) by fencepost.gnu.org with smtp (Exim 3.34 #1 (Debian)) id 16sVYF-0003AB-00 for ; Tue, 02 Apr 2002 16:10:47 -0500 Original-Received: from kfs2.cua.dk.cua.dk (unknown [10.1.82.3]) by mail.filanet.dk (Postfix) with SMTP id AF6367C035; Tue, 2 Apr 2002 21:10:44 +0000 (GMT) Original-To: Tak Ota In-Reply-To: <20020402.082655.60851184.Takaaki.Ota@am.sony.com> Original-Lines: 30 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2.50 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:2330 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:2330 Tak Ota writes: > 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. I don't see what those two things have in common, so I don't like the change! The generic solution would probably be to add a new variable, alternate-cursor-type which can be set to e.g. nil or 'hollow to specify the cursor type to use when blinking the standard cursor-type. However, this is a little complicated since cursor-type is buffer-local, so I'd guess alternate-cursor-type would have to be buffer-local as well. And we would also have to add the alternate-cursor-type to the frame-parameters to initialize the cursor type. A simpler approach would be to have two global variables: alternate-block-cursor-type and alternate-bar-cursor-type which would be used in all buffers. This could be implemented in 30 minutes. However, IIRC, Richard didn't want to make this configurable. -- Kim F. Storm http://www.cua.dk