unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: storm@cua.dk (Kim F. Storm)
Cc: emacs-devel@gnu.org
Subject: Re: CUA mode cursor color
Date: 13 May 2002 22:21:19 +0200	[thread overview]
Message-ID: <abq6nj$urh$2@main.gmane.org> (raw)
In-Reply-To: <buooffk4zjw.fsf@mcspd15.ucom.lsi.nec.co.jp>

Miles Bader <miles@lsi.nec.co.jp> 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 <storm@cua.dk> http://www.cua.dk

  parent reply	other threads:[~2002-05-13 20:21 UTC|newest]

Thread overview: 35+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-05-13  1:16 CUA mode cursor color Miles Bader
2002-05-13  1:35 ` Miles Bader
2002-05-13 12:42   ` Stefan Monnier
2002-05-13 17:00     ` Richard Stallman
2002-05-13 21:23     ` Kim F. Storm
2002-05-15  7:00       ` Richard Stallman
2002-05-15 21:23         ` Kim F. Storm
2002-05-13 13:50   ` Juanma Barranquero
2002-05-13 17:00   ` Richard Stallman
2002-05-13 17:10     ` Stefan Monnier
2002-05-13 17:55       ` Sam Steingold
2002-05-13 18:15         ` Stefan Monnier
2002-05-14  8:05           ` Kai Großjohann
2002-05-14 13:19             ` Stefan Monnier
2002-05-14 13:36               ` Miles Bader
2002-05-14 15:03                 ` Kai Großjohann
2002-05-13 23:58       ` Alex Schroeder
2002-05-15  7:01         ` Richard Stallman
2002-05-14 19:40       ` Richard Stallman
2002-05-13 23:42     ` Miles Bader
2002-05-15  7:00       ` Richard Stallman
2002-05-13 17:00   ` Richard Stallman
2002-05-13 23:52     ` Miles Bader
2002-05-15  7:00       ` Richard Stallman
2002-05-15 21:26         ` Kim F. Storm
2002-05-17 19:29           ` Richard Stallman
2002-05-13 21:08   ` Kim F. Storm
2002-05-13 22:41     ` Miles Bader
2002-05-13 11:21 ` Ehud Karni
2002-05-13 21:26   ` Kim F. Storm
2002-05-13 17:00 ` Richard Stallman
2002-05-13 20:21 ` Kim F. Storm
2002-05-13 20:21 ` Kim F. Storm [this message]
2002-05-13 20:21 ` Kim F. Storm
2002-05-14  5:52   ` Miles Bader

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='abq6nj$urh$2@main.gmane.org' \
    --to=storm@cua.dk \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).