help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: Error "Key sequence starts with non-prefix key"


From: Thorsten Jolitz
Subject: Re: Error "Key sequence starts with non-prefix key"
Date: Wed, 04 Jun 2014 14:38:55 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux)

Nicolas Richard <theonewiththeevillook@yahoo.fr> writes:

> Thorsten Jolitz <tjolitz@gmail.com> writes:
>> (let ((map (lookup-key outline-minor-mode-map outline-minor-mode-prefix)))
>>   (define-key map "\C-a" 'show-all)
>>   (define-key map "\C-\M-l" 'outshine-insert-all-links)
>>   (define-key map (kbd "C-v C-a") 'outshine-babel-sha1-hash) [...]
>
>> I get an error because of the last line (no matter if I use the `kdb'
>> macro or just write "\C-v\C-a"):
>
> It means C-v is already defined. Just undefine it before you try to make
> it into a prefix:
> (define-key map (kbd "C-v") nil)

I see, thanks!

That binding was defined "upstream" in outline.el

,-------------------------------------------------------
| (defvar outline-mode-prefix-map
|   (let ((map (make-sparse-keymap)))
|     (define-key map "\C-v" 'outline-move-subtree-down)
`-------------------------------------------------------

so I could not find it in my own sources, and it was still around
although I defined alternative bindings myself.

PS
and 

,------------------
| C-h k C-c C-v RET
`------------------

returned "undefined" because I had actually a different prefix than "C-c"
defined in my init.el ...

-- 
cheers,
Thorsten




reply via email to

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