GNU bug report logs - #59130
Inconsistent behaviour with key-translation-map

Previous Next

Package: emacs;

Reported by: João Guerra <joca.bt <at> gmail.com>

Date: Tue, 8 Nov 2022 19:39:02 UTC

Severity: normal

Tags: notabug

Done: Eli Zaretskii <eliz <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: help-debbugs <at> gnu.org (GNU bug Tracking System)
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: tracker <at> debbugs.gnu.org
Subject: bug#59130: closed (Inconsistent behaviour with key-translation-map)
Date: Fri, 11 Nov 2022 07:03:02 +0000
[Message part 1 (text/plain, inline)]
Your message dated Fri, 11 Nov 2022 09:01:56 +0200
with message-id <8335aqq8ij.fsf <at> gnu.org>
and subject line Re: bug#59130: Inconsistent behaviour with key-translation-map
has caused the debbugs.gnu.org bug report #59130,
regarding Inconsistent behaviour with key-translation-map
to be marked as done.

(If you believe you have received this mail in error, please contact
help-debbugs <at> gnu.org.)


-- 
59130: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=59130
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
From: João Guerra <joca.bt <at> gmail.com>
To: bug-gnu-emacs <at> gnu.org
Subject: Inconsistent behaviour with key-translation-map
Date: Tue, 8 Nov 2022 20:37:36 +0100
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?


[Message part 3 (message/rfc822, inline)]
From: Eli Zaretskii <eliz <at> gnu.org>
To: João Guerra <joca.bt <at> gmail.com>
Cc: 59130-done <at> debbugs.gnu.org, monnier <at> iro.umontreal.ca
Subject: Re: bug#59130: Inconsistent behaviour with key-translation-map
Date: Fri, 11 Nov 2022 09:01:56 +0200
> From: João Guerra <joca.bt <at> gmail.com>
> Date: Thu, 10 Nov 2022 22:15:28 +0100
> Cc: 59130 <at> debbugs.gnu.org, Stefan Monnier <monnier <at> iro.umontreal.ca>
> 
> 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.


This bug report was last modified 2 years and 252 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.