From: storm@cua.dk (Kim F. Storm)
Cc: emacs-devel@gnu.org
Subject: Re: CUA mode cursor color
Date: 13 May 2002 23:08:33 +0200 [thread overview]
Message-ID: <5xit5r7o32.fsf@kfs2.cua.dk> (raw)
In-Reply-To: <buok7q84yo1.fsf@mcspd15.ucom.lsi.nec.co.jp>
Miles Bader <miles@lsi.nec.co.jp> writes:
> A few more comments about CUA mode:
>
> 1. Using `M-x cua-mode' doesn't print a message in the mode-line,
> whereas using the menu option does. Why not always print a message
> (many other mode toggles do, and they probably all should), and make
> the menu option and `M-x cua-mode' exactly the same?
Will fix that.
>
> 2. 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. I'm not sure the best way to implement this.
Good idea. I'll do that.
>
> 3. In the NEWS file, it says:
>
> With cua, the region can be set and extended using shifted
> movement keys (like pc-selection-mode) and typed text replaces
> the active region (like delete-selection-mode). Do not enable
> these modes with cua-mode.
>
I have added code which disables these modes when cua-mode is enabled
and reenable them if cua-mode is disabled.
> It would be nice if `pc-selection-mode' and `delete-selection-mode'
> simply used the same code that cua-mode does, so that they are more
> compatible (after all, it's not unlikely that a potential user of
> CUA mode already has one or both of them enabled, and might not see
> the warning in NEWS).
This is true -- but there are other packages in emacs which overlap
in functionality, so I guess it is ok to have these as separate
packages.
But it should not be possible to enable them if cua-mode is enabled.
One way to accomplish thati is directly in the delete-selection-mode
and pc-selection-mode functions, but I don't know if that is really
possible with define-minor-mode.
Another possibility would be to defadvice those functions in cua-base,
but can you defadvice a function which isn't (auto)loaded yet [I
definitely don't want to load it just to defadvice it].
Any suggestions?
--
Kim F. Storm <storm@cua.dk> http://www.cua.dk
next prev parent reply other threads:[~2002-05-13 21:08 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 [this message]
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
2002-05-14 5:52 ` Miles Bader
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=5xit5r7o32.fsf@kfs2.cua.dk \
--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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.