[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Enhancements to "minor-mode-map-alist" functionality.

From: Kim F. Storm
Subject: Re: Enhancements to "minor-mode-map-alist" functionality.
Date: 22 Apr 2002 15:53:07 +0200
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2.50

Richard Stallman <address@hidden> writes:

>     >     To facilitate this, three more keymaps are used which selectively 
> does
>     >     command remapping of `kill-ring-save' to handle either region, 
> rectangle,
>     >     or the global mark.
>     > 
>     > It would be cleaner to define a single new command for that purpose.
>     I don't agree.  There are many other commands which are specific for
>     the region, rectangle, and global mark cases, and handling those in
>     separate functions is a lot clearer (to me).
> You said that the function of these maps is to remap
> `kill-ring-save'.  I based my comment on what you said.

I explained how C-x is handled as an example.

> Rather than remap `kill-ring-save', which is the usual
> key binding of M-w, I think it would be cleaner to bind M-w
> to one new command.

But the remapping is the elegant part of cua ---  in each
of the keymaps for the region, rectangle, and global mark
I simply remap kill-ring-save to cua-kill-region, cua-kill-rectangle
or cua-kill-to-global-mark ... ignoring the specific keybindings the
user may be using for kill-ring-save  (and copy-region-as-kill BTW).

> What do these "many other commands" have to do with remapping
> `kill-ring-save'?  I don't see the connection.  Do these three maps do
> something else besides remap `kill-ring-save'?  If so, would you
> please say precisely what other jobs they do?

Well, they define other bindings which are specific for cua's
handling of the region, rectangles, and global mark.

Kim F. Storm <address@hidden> http://www.cua.dk

reply via email to

[Prev in Thread] Current Thread [Next in Thread]