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

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

Re: Emacs 21.3, Linux tty: Meta gets lopped off of C-M-g


From: Alan Mackenzie
Subject: Re: Emacs 21.3, Linux tty: Meta gets lopped off of C-M-g
Date: Thu, 1 Apr 2004 21:48:09 +0000 (GMT)

On Mon, 29 Mar 2004, Richard Stallman wrote:

> [Alan:]   WHY is it necessary to discard ESC from ESC C-g?

>I don't know, but I don't think Emacs is doing it.
>I think it is Linux.

Apologies.  It is indeed Linux's thing.  When one types C-M-g, the Linux
keyboard driver produces the two character sequence 0x19,0x07, i.e.  ESC
C-g.  Presumably under X, this gets converted into C-M-g before Emacs
sees it.

It would be unreasonable in the extreme to expect Emacs to distinguish
between a user typing ESC followed by C-g, and her typing C-M-g.

I have solved the problem for me personally by remapping my keyboard such
that C-M-g now generates "esc [ 3 > g".  For this, I have a handling
function in the function-key-map.

Many thanks for prodding me to look at this more closely!

-- 
Alan Mackenzie (Munich, Germany)
address@hidden






reply via email to

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