[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: keyboard translate
From: |
Stefan Monnier |
Subject: |
Re: keyboard translate |
Date: |
Sun, 08 Jan 2006 23:04:31 -0500 |
User-agent: |
Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) |
> (define-key text-mode-map "\M-[" (lambda () (interactive nil)(ucs-insert "
> 0170")))
> But the [home] is lost:
> the home key produces ESC [ 1 ~ and is not recognized.
M-[ (i.e. the [ key pressed with the meta modifier) is synonymous in Emacs
to ESC [ (at least unless you change the value of meta-prefix-char), so
you've added not just a binding to M-[ but also to ESC [.
Since the bindings in function-key-map are only used if the key would
otherwise be unbound, the translation of ESC [ 1 ~ into [home] is prevented
by your M-[ binding.
Stefan