GNU Info

Info Node: (efaq)Invalid prefix characters

(efaq)Invalid prefix characters


Next: Terminal setup code works after Emacs has begun Prev: Binding keys to commands Up: Key bindings
Enter node , (file) or (file)node

Why does Emacs say "Key sequence XXX uses invalid prefix characters"?
=====================================================================

   Usually, one of two things has happened.  In one case, the control
character in the key sequence has been misspecified (e.g. `C-f' used
instead of `\C-f' within a Lisp expression).  In the other case, a
"prefix key" in the keystroke sequence you were trying to bind was
already bound as a "complete key".  Historically, the `ESC [' prefix
was usually the problem, in which case you should evaluate either of
these forms before attempting to bind the key sequence:

     (global-unset-key [?\e ?[])  ;;  or
     (global-unset-key "\e[")


automatically generated by info2www version 1.2.2.9