[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: CUA mode cursor color
From: |
Kim F. Storm |
Subject: |
Re: CUA mode cursor color |
Date: |
13 May 2002 23:08:33 +0200 |
User-agent: |
Gnus/5.09 (Gnus v5.9.0) Emacs/21.2.50 |
Miles Bader <address@hidden> 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 <address@hidden> http://www.cua.dk
Re: CUA mode cursor color, Richard Stallman, 2002/05/13
Re: CUA mode cursor color,
Kim F. Storm <=
Re: CUA mode cursor color, Ehud Karni, 2002/05/13
Re: CUA mode cursor color, Richard Stallman, 2002/05/13
Re: CUA mode cursor color, Kim F. Storm, 2002/05/13