From: Miles Bader <miles@gnu.org>
Cc: emacs-devel@gnu.org
Subject: Re: CUA mode cursor color
Date: 14 May 2002 08:52:49 +0900 [thread overview]
Message-ID: <87u1pbhage.fsf@tc-1-100.kawasaki.gol.ne.jp> (raw)
In-Reply-To: <200205131700.g4DH0E413260@aztec.santafe.edu>
Richard Stallman <rms@gnu.org> writes:
> If you have transient-mark-mode enabled, turning on cua-mode and
> then turning it off again leaves transient-mark-mode disabled;
> it would be much better to leave it in whatever state it was in
> originally.
>
> It would be nice, but I think it is impossible to find a way to handle
> this that gives in all cases the result that you would consider
> correct.
Maybe it's a hard problem in general, but it doesn't seem hard to do a
very good job in this case:
cua-mode can record whether transient-mark-mode was enabled when it
was turned on, by setting variable `cua-mode-tmm-was-enabled' to t.
Then when cua-mode is turned off, only disable transient-mark-mode if
`cua-mode-tmm-was-enabled' is nil (otherwise, just do nothing).
This only fails in the most bizarre of cases; for instance:
if t-m-m is disabled, and the user turns on cua-mode, and then turns off
t-m-m and then turns t-m-m back on, and somehow expects it to then
`stick' if he subsequently turns off cua-mode. This seems like a very
unlikely scenario.
A bigger problem would be if multiple modes (including cua-mode) try to
turn on t-m-m for their own usage; then things would probably get hairy.
Currently this doesn't seem to be the case (and if this happens, we
could just design some mechanism to deal with it, e.g., ref-counting
uses of t-m-m).
-Miles
--
`...the Soviet Union was sliding in to an economic collapse so comprehensive
that in the end its factories produced not goods but bads: finished products
less valuable than the raw materials they were made from.' [The Economist]
next prev parent reply other threads:[~2002-05-13 23:52 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 [this message]
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-14 5:52 ` Miles Bader
2002-05-13 20:21 ` Kim F. Storm
2002-05-13 20:21 ` Kim F. Storm
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=87u1pbhage.fsf@tc-1-100.kawasaki.gol.ne.jp \
--to=miles@gnu.org \
--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).