[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Problem binding to a key
From: |
Tim X |
Subject: |
Re: Problem binding to a key |
Date: |
Sat, 21 Apr 2007 14:04:52 +1000 |
User-agent: |
Gnus/5.11 (Gnus v5.11) Emacs/22.0.95 (gnu/linux) |
weber <hugows@gmail.com> writes:
> On 20 abr, 11:54, Cecil Westerhof <d...@dummy.nl> wrote:
>> I have the following two lines in my .emacs:
>> (define-key global-map "\C-cw" 'clipboard-kill-ring-save)
>> (define-key global-map "\C-x\C-kw" 'clipboard-kill-ring-save)
>>
>> The first line is no problem, the second gives:
>> error: "Key sequence C-x C-k w uses invalid prefix characters"
>>
>> What I understood from 'Learning GNU Emacs' is the second way, the way you
>> should bind your own definitions. Why does it not work?
>
> Because C-k already has another definition (killing text)
> You have to "undefine" C-k with something like this:
> (global-set-key "\C-k" nil)
> Hope it helps,
> weber
>
>
Correct diagnosis, wrong solution I think. The problem is that part of the key
definition is already used C-xC-k is already bound to a command. Note that its
not C-k as this is a different binding to C-xC-k.
tim
--
tcross (at) rapttech dot com dot au
- Re: Problem binding to a key, (continued)
- Re: Problem binding to a key, Rjjd, 2007/04/20
- Re: Problem binding to a key, Cecil Westerhof, 2007/04/20
- Re: Problem binding to a key, Tim X, 2007/04/21
- Re: Problem binding to a key, Cecil Westerhof, 2007/04/21
- Re: Problem binding to a key, Cecil Westerhof, 2007/04/21
- Re: Problem binding to a key, Johan Bockgård, 2007/04/21
- Re: Problem binding to a key, Reiner Steib, 2007/04/21
- Re: Problem binding to a key, Cecil Westerhof, 2007/04/22
- Re: Problem binding to a key, Tim X, 2007/04/22
- Re: Problem binding to a key, Cecil Westerhof, 2007/04/22
Re: Problem binding to a key,
Tim X <=
Re: Problem binding to a key, Eric Hanchrow, 2007/04/20