emacs-devel
[Top][All Lists]
Advanced

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

Re: Suggestion: Simple way to make conditional key bindings.


From: Kim F. Storm
Subject: Re: Suggestion: Simple way to make conditional key bindings.
Date: 28 Aug 2002 00:58:30 +0200
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50

Richard Stallman <address@hidden> writes:

>     > I don't think that's right.  I don't believe that table wants to 
> override
>     > C-y sometimes: instead it wants to override `yank' sometimes.
>     > So what you want to do is to create `yank-careful' and then use
>     > either the `remap' thingy or substitute-key-definition or something
>     > like that.
> 
> I wonder if it is possible for the text property keymap
> to remap yank to my-yank, and have this affect bindings
> of yank that come from the global map or buffer local map.
> Does this work?

It should work.

Remapping works by taking the result of the normal key lookup, say
`yank' for C-y and perform a new lookup (in the exact same keymaps)
for the vector [remap yank].  But it will not (and cannot) check the
keymap property of the text _to_be_yanked_.






reply via email to

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