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

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

Re: key binding


From: Stefan Monnier
Subject: Re: key binding
Date: Tue, 04 Feb 2014 20:53:10 -0500
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux)

> (global-set-key (kbd "<escape><f3>") (lambda () (interactive)
>                                        (compare-windows t)))

Try
   (global-set-key [M-f3] (lambda () (interactive) (compare-windows t)))
or
   (global-set-key [?\e f3] (lambda () (interactive) (compare-windows t)))

The problem with your binding is that it uses the `escape' event.
This event is normally unbound and turned (via function-key-map) into an
ESC event (the "ASCII char 27 known as 'escape'") to which lots of
things are bound.  This mapping is because ESC is what is received in
a text terminal when you press the `escape' key, so some code somewhere
needs to "unify" the ESC char (from the tty) and the `escape' event
(from the GUI library).


        Stefan




reply via email to

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