Subject: bug#59130: closed (Re: bug#59130: Inconsistent behaviour with key-translation-map)

From: [email-masked] (GNU bug Tracking System)
Date: Fri, 11 Nov 2022 07:03:02 +0000

Your bug report

#59130: Inconsistent behaviour with key-translation-map

which was filed against the emacs package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to [email-masked].

-- 
59130: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=59130
GNU Bug Tracking System
Contact [email-masked] with problems

Subject: Re: bug#59130: Inconsistent behaviour with key-translation-map
From: Eli Zaretskii <[email-masked]>
To: João Guerra <[email-masked]>
Cc: [email-masked], [email-masked]
Date: Fri, 11 Nov 2022 09:01:56 +0200
List-Id: <debbugs-submit.debbugs.gnu.org>

> From: João Guerra <[email-masked]>
> Date: Thu, 10 Nov 2022 22:15:28 +0100
> Cc: [email-masked], Stefan Monnier <[email-masked]>
> 
> After some analysis it looks like what I want to do cannot be done
> totally in lisp. I'll just define hyper via xdb. Please close this
> issue.

Thanks, closed.

Subject: Inconsistent behaviour with key-translation-map
From: João Guerra <[email-masked]>
To: [email-masked]
Date: Tue, 8 Nov 2022 20:37:36 +0100
List-Id: <debbugs-submit.debbugs.gnu.org>

It's possible to remap keys into other keys or sequence of keys via
key-translation-map
(https://www.gnu.org/software/emacs/manual/html_node/elisp/Translation-Keymaps.html).

For example,

setting
(define-key key-translation-map (kbd "<apps>") (kbd "C-x C-f"))
and pressing <apps> will execute command find-file,

setting
(define-key key-translation-map (kbd "<apps>") (kbd "C-x"))
and pressing <apps> C-f will execute command find-file.

However, setting
(define-key key-translation-map (kbd "<apps>") (kbd "C-x @ h"))
and pressing <apps> p will not execute H-p.

(C-x @ h adds prefix hyper
https://www.gnu.org/software/emacs/manual/html_node/emacs/Modifier-Keys.html)

Is this an issue or as expected?