From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#59130: Inconsistent behaviour with key-translation-map Date: Tue, 08 Nov 2022 22:21:52 +0200 Message-ID: <835yfpxkm7.fsf@gnu.org> References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="29086"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 59130@debbugs.gnu.org To: =?UTF-8?Q?Jo=C3=A3o?= Guerra , Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Nov 08 21:23:16 2022 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1osV7r-0007HJ-Kj for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 08 Nov 2022 21:23:15 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1osV7g-0004im-Dw; Tue, 08 Nov 2022 15:23:04 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1osV7f-0004iJ-2x for bug-gnu-emacs@gnu.org; Tue, 08 Nov 2022 15:23:03 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1osV7e-0005iO-Qw for bug-gnu-emacs@gnu.org; Tue, 08 Nov 2022 15:23:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1osV7e-0002KF-Ly for bug-gnu-emacs@gnu.org; Tue, 08 Nov 2022 15:23:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 08 Nov 2022 20:23:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 59130 X-GNU-PR-Package: emacs Original-Received: via spool by 59130-submit@debbugs.gnu.org id=B59130.16679389448869 (code B ref 59130); Tue, 08 Nov 2022 20:23:02 +0000 Original-Received: (at 59130) by debbugs.gnu.org; 8 Nov 2022 20:22:24 +0000 Original-Received: from localhost ([127.0.0.1]:38252 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1osV71-0002Iy-T1 for submit@debbugs.gnu.org; Tue, 08 Nov 2022 15:22:24 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:59704) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1osV6z-0002If-PO for 59130@debbugs.gnu.org; Tue, 08 Nov 2022 15:22:22 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1osV6i-000306-MZ; Tue, 08 Nov 2022 15:22:14 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=NsHZKjSfXHQRj/AYM8nPloztZ75fQpTLFSkvngwFc8Q=; b=YT+AMdeJ6RMipTnLbM2o ilSFl3F48Qrgqor2xna0O83lucoNnFyzUWmfKyHOeyjylAuNA5qoB8AoTCRz6aIrVfKUK5iWOB0hD SAmukl4zAtQpoXPhH1birhOSACOjwbFOOn1Pb5lHas7x8dbyU76wqdZ0psY1KX9YDiV82rrmx945c GSGkvNuJ0Q1TlMWKaU6Ew42yKhjod3ph2K6/OvnS18/MxXMwN7L/21X3V+BzfB2ixdj5utlAPeQZP RkSeUABmJU8HGiK9Sp8ixMmduxdokY0nIn9woTybzb7VXQmWXFiBmDKiVKmaIk/MXmgiIIozMI2Hy 7/Xy0CzhHD+gjA==; Original-Received: from [87.69.77.57] (helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1osV6h-0000yY-KB; Tue, 08 Nov 2022 15:22:04 -0500 In-Reply-To: (message from =?UTF-8?Q?Jo=C3=A3o?= Guerra on Tue, 8 Nov 2022 20:37:36 +0100) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:247359 Archived-At: > From: João Guerra > 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 "") (kbd "C-x C-f")) > and pressing will execute command find-file, > > setting > (define-key key-translation-map (kbd "") (kbd "C-x")) > and pressing C-f will execute command find-file. > > However, setting > (define-key key-translation-map (kbd "") (kbd "C-x @ h")) > and pressing 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? Adding Stefan to CC, in the hope that he knows the answer.