all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Error "Key sequence starts with non-prefix key"
@ 2014-06-04 11:52 Thorsten Jolitz
  2014-06-04 12:13 ` Nicolas Richard
  0 siblings, 1 reply; 7+ messages in thread
From: Thorsten Jolitz @ 2014-06-04 11:52 UTC (permalink / raw)
  To: help-gnu-emacs


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





^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2014-06-06  9:12 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-06-04 11:52 Error "Key sequence starts with non-prefix key" Thorsten Jolitz
2014-06-04 12:13 ` 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

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.