From: Thorsten Jolitz <tjolitz@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Error "Key sequence starts with non-prefix key"
Date: Wed, 04 Jun 2014 13:52:51 +0200 [thread overview]
Message-ID: <87lhtcc2ng.fsf@gmail.com> (raw)
Hi List,
with the following expression defining key-bindings (assume
outline-minor-mode-prefix is C-c):
(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"):
Debugger entered--Lisp error:
(error "Key sequence C-v C-a starts with non-prefix key C-v")
I wonder what I have to do to declare e.g. C-v or C-x as prefixes for
submaps to let me define bindings like 'C-c C-v C-a', i.e. (define-key
map (kbd "C-v C-a") ...) with C-c prefix?
Maybe its simple and RTFM applies, but I couldn't find it ...
--
cheers,
Thorsten
next reply other threads:[~2014-06-04 11:52 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-06-04 11:52 Thorsten Jolitz [this message]
2014-06-04 12:13 ` Error "Key sequence starts with non-prefix key" Nicolas Richard
2014-06-04 12:38 ` Thorsten Jolitz
[not found] ` <mailman.2894.1401885569.1147.help-gnu-emacs@gnu.org>
2014-06-06 8:29 ` Hans BKK
2014-06-06 8:38 ` Nicolas Richard
[not found] ` <mailman.3112.1402043848.1147.help-gnu-emacs@gnu.org>
2014-06-06 8:47 ` Hans BKK
2014-06-06 9:12 ` Nicolas Richard
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87lhtcc2ng.fsf@gmail.com \
--to=tjolitz@gmail.com \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.