From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Alan Schmitt Newsgroups: gmane.emacs.help Subject: Re: key-translation-map not taken into account? Date: Mon, 08 Jun 2015 13:34:06 +0200 Message-ID: References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" X-Trace: ger.gmane.org 1433763289 25825 80.91.229.3 (8 Jun 2015 11:34:49 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 8 Jun 2015 11:34:49 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Jun 08 13:34:40 2015 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Z1vK9-0002rk-T4 for geh-help-gnu-emacs@m.gmane.org; Mon, 08 Jun 2015 13:34:38 +0200 Original-Received: from localhost ([::1]:57248 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z1vK4-0004Yu-39 for geh-help-gnu-emacs@m.gmane.org; Mon, 08 Jun 2015 07:34:32 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:49310) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z1vJq-0004Yd-V7 for help-gnu-emacs@gnu.org; Mon, 08 Jun 2015 07:34:19 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Z1vJn-00074n-IH for help-gnu-emacs@gnu.org; Mon, 08 Jun 2015 07:34:18 -0400 Original-Received: from plane.gmane.org ([80.91.229.3]:41778) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z1vJn-00074C-BR for help-gnu-emacs@gnu.org; Mon, 08 Jun 2015 07:34:15 -0400 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1Z1vJl-0002Vo-1z for help-gnu-emacs@gnu.org; Mon, 08 Jun 2015 13:34:13 +0200 Original-Received: from charm-ecran.irisa.fr ([131.254.101.83]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 08 Jun 2015 13:34:13 +0200 Original-Received: from alan.schmitt by charm-ecran.irisa.fr with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 08 Jun 2015 13:34:13 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 53 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: charm-ecran.irisa.fr User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (darwin) Cancel-Lock: sha1:7rS731oCZt3Ke5nxgCgzYWs6vuo= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:104833 Archived-At: --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On 2015-06-08 04:29, Stefan Monnier writes: >> (define-key key-translation-map (kbd "") (kbd "")) > > Why did you choose key-translation-map over function-key-map or > input-decode-map? Ignorance =E2=80=A6 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 "") (kbd "")) (define-key key-translation-map (kbd " d") (kbd "C-c")) #+end_src Everything seems to be working this way. Thanks again, Alan =2D-=20 OpenPGP Key ID : 040D0A3B4ED2E5C7 --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQEcBAEBCgAGBQJVdX2uAAoJEAQNCjtO0uXHjcEH/0WI4HFogSgagMVNhkOFg1L7 0dR4lCpH+P7T1J3gfSGzVrhOSV57dPYSmUDmUI0zimrjBQfRPXrJCQDVmtFrzNRp rTbLCzw3Td0Z3qGMTegdhsk8Voj7kV8znbKSsFU6A3dPPKHd69cwPhUK9eJxcvgf 7h/DCJoDCjpZkQ/0Ny41V+O87C1/tAKHQY5JZY0e/DfjWDujut8Umk1UQfY58NG3 iSWOoZ3wIs1GJn2bieyxGhtf72+skXU+d4NiyI7U4ZWdKezeSCJ1bkl8Zs1qmctZ mifAlc4JX7D5YlsckET5qEa5BtnLLNgf1HYxVlHZOROSqe1+loFPnOegjVQkEJI= =Wv0g -----END PGP SIGNATURE----- --=-=-=--