[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: key-translation-map not taken into account?
From: |
Alan Schmitt |
Subject: |
Re: key-translation-map not taken into account? |
Date: |
Mon, 08 Jun 2015 13:34:06 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.5 (darwin) |
On 2015-06-08 04:29, Stefan Monnier <monnier@iro.umontreal.ca> writes:
>> (define-key key-translation-map (kbd "<f19>") (kbd "<apps>"))
>
> Why did you choose key-translation-map over function-key-map or
> input-decode-map?
Ignorance … I was put off by the description of `input-decode-map' that
starts with:
This variable holds a keymap that describes the character
sequences sent by function keys on an ordinary character terminal.
I also read about using `key-translation-map' this way at
https://ergoemacs.github.io/faq.html and it was working well until
I wanted to chain them.
Thanks to your suggestion, this is what I'm now doing:
#+begin_src emacs-lisp
(define-key local-function-key-map (kbd "<f19>") (kbd "<apps>"))
(define-key key-translation-map (kbd "<apps> d") (kbd "C-c"))
#+end_src
Everything seems to be working this way.
Thanks again,
Alan
--
OpenPGP Key ID : 040D0A3B4ED2E5C7
signature.asc
Description: PGP signature