[comp.emacs] C-X ESC-<anything> equals C-X ESC ??

lakin@csli.Stanford.EDU (Fred Lakin) (09/13/90)

having defined foo, i tried to bind it to C-X C-M-L:

   (global-set-key "\C-x\C-[\C-l" 'foo)

and found i had rebound C-X ESC ... and in fact it seems like
the <anything> in "\C-x\C-[<anything>" made no difference.

what don;t i understand here?

tnx, f

roland@ai.mit.edu (Roland McGrath) (09/13/90)

You must first tell Emacs that there are more characters coming after C-x ESC.
Do this with:

  (fset 'Control-X-ESC-prefix (make-sparse-keymap))
  (global-set-key "\C-x\e" 'Control-X-ESC-prefix)
--
	Roland McGrath
	Free Software Foundation, Inc.
roland@ai.mit.edu, uunet!ai.mit.edu!roland

gumby@Cygnus.COM (David Vinayak Wallace) (09/15/90)

   Date: 12 Sep 90 18:47:38 GMT
   From: lakin@csli.Stanford.EDU (Fred Lakin)

   having defined foo, i tried to bind it to C-X C-M-L:

      (global-set-key "\C-x\C-[\C-l" 'foo)

   and found i had rebound C-X ESC ... and in fact it seems like
   the <anything> in "\C-x\C-[<anything>" made no difference.

   what don;t i understand here?

Sorry Fred, what you don't understand is that unlike real emacs, GNU
emacs uses seven-bit ASCII.  Meta-foo is converted to escape foo
internally!

Apparently this may have to change back to make a bunch of things work
right in Emacs 19, but may not get done because of the amount of work
involved.

Face it, Fred: I have seen the future and it is Unix.  And they call
this a kinder, gentler age!