[Top][All Lists]
[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_.
- Re: Suggestion: Simple way to make conditional key bindings., (continued)
- Re: Suggestion: Simple way to make conditional key bindings., Richard Stallman, 2002/08/25
- Re: Suggestion: Simple way to make conditional key bindings., David PONCE, 2002/08/23
- Re: Suggestion: Simple way to make conditional key bindings., Kim F. Storm, 2002/08/23
- Re: Suggestion: Simple way to make conditional key bindings., Stefan Monnier, 2002/08/23
- Re: Suggestion: Simple way to make conditional key bindings., Kim F. Storm, 2002/08/25
- Re: Suggestion: Simple way to make conditional key bindings., Stefan Monnier, 2002/08/26
- Re: Suggestion: Simple way to make conditional key bindings., Miles Bader, 2002/08/26
- Re: Suggestion: Simple way to make conditional key bindings., Richard Stallman, 2002/08/27
- Re: Suggestion: Simple way to make conditional key bindings.,
Kim F. Storm <=
- Re: Suggestion: Simple way to make conditional key bindings., Richard Stallman, 2002/08/28
- Re: Suggestion: Simple way to make conditional key bindings., Kim F. Storm, 2002/08/29
- Re: Suggestion: Simple way to make conditional key bindings., Miles Bader, 2002/08/27
- Re: Suggestion: Simple way to make conditional key bindings., Stefan Monnier, 2002/08/27
- Re: Suggestion: Simple way to make conditional key bindings., Kim F. Storm, 2002/08/27