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: CUA mode cursor color Date: 13 May 2002 22:21:19 +0200 Sender: emacs-devel-admin@gnu.org Message-ID: References: NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1021436518 18118 127.0.0.1 (15 May 2002 04:21:58 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 15 May 2002 04:21:58 +0000 (UTC) Cc: emacs-devel@gnu.org Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by main.gmane.org with esmtp (Exim 3.33 #1 (Debian)) id 177qIY-0004i7-00 for ; Wed, 15 May 2002 06:21:58 +0200 Original-Received: from fencepost.gnu.org ([199.232.76.164]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 177qTt-0000vU-00 for ; Wed, 15 May 2002 06:33:41 +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 177qIX-0000uZ-00; Wed, 15 May 2002 00:21:57 -0400 Original-Received: from fepj.post.tele.dk ([195.41.46.226]) by fencepost.gnu.org with smtp (Exim 3.34 #1 (Debian)) id 177qHX-0000rk-00; Wed, 15 May 2002 00:20:55 -0400 Original-Received: from kfs2.cua.dk.cua.dk ([80.62.38.68]) by fepD.post.tele.dk (InterMail vM.4.01.03.23 201-229-121-123-20010418) with SMTP id <20020513192033.BPTR7393.fepD.post.tele.dk@kfs2.cua.dk.cua.dk>; Mon, 13 May 2002 21:20:33 +0200 Original-To: Miles Bader In-Reply-To: Original-Lines: 48 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.9 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Emacs development discussions. List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.emacs.devel:3947 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:3947 Miles Bader writes: > I turned on CUA mode to check it out, and noticed that in addition to > the behavior I expected -- C-x/C-c/C-v cut 'n' paste -- it also changed > my cursor color. > > After searching a bit, I found the following in cua-mode.el: > > ;; CUA mode indications > ;; -------------------- > ;; You can choose to let CUA use different cursor colors to indicate > ;; overwrite mode and read-only buffers. > > [This is apparently on by default too.] Oops. That's unintentional -- it should be off by default. I'll fix that. > > Is there a reason this is part of CUA mode? Even if it's a nice feature > (and I suppose it is, I was just surprised by it), it seems orthogonal > to the main functionality of CUA mode. There are two reasons: - the rectangle code uses different cursor colors to indicate padding on/off. - the cursor color and blink frequency changes when the global mark is active. Personally, I found it difficult to separate this from a general control of the cursor color based on insert/overwrite/read-only status. > > Why not move this stuff into a separate mode -- then people who don't > want CUA mode can use it, and people who just want CUA mode won't have > to go investigate why their cursor color keeps changing. If someone like to work on this, feel welcome to rip out the code from cua-base.el (or write something else). Remember to make it possible for other packages to link their own cursor color controls into it. -- Kim F. Storm http://www.cua.dk