From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: =?UTF-8?Q?Jo=C3=A3o?= Guerra Newsgroups: gmane.emacs.bugs Subject: bug#59130: Inconsistent behaviour with key-translation-map Date: Tue, 8 Nov 2022 20:37:36 +0100 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="1729"; mail-complaints-to="usenet@ciao.gmane.io" To: 59130@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Nov 08 20:39:28 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 1osURU-00009C-3U for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 08 Nov 2022 20:39:28 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1osUR7-0003LT-24; Tue, 08 Nov 2022 14:39:05 -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 1osUR5-0003Kw-2z for bug-gnu-emacs@gnu.org; Tue, 08 Nov 2022 14:39: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 1osUR4-00051d-Mu for bug-gnu-emacs@gnu.org; Tue, 08 Nov 2022 14:39:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1osUR4-0001FG-FG for bug-gnu-emacs@gnu.org; Tue, 08 Nov 2022 14:39:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: =?UTF-8?Q?Jo=C3=A3o?= Guerra Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 08 Nov 2022 19:39:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 59130 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.16679363034740 (code B ref -1); Tue, 08 Nov 2022 19:39:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 8 Nov 2022 19:38:23 +0000 Original-Received: from localhost ([127.0.0.1]:38204 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1osUQQ-0001EM-QG for submit@debbugs.gnu.org; Tue, 08 Nov 2022 14:38:23 -0500 Original-Received: from lists.gnu.org ([209.51.188.17]:51900) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1osUQP-0001EE-3T for submit@debbugs.gnu.org; Tue, 08 Nov 2022 14:38:21 -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 1osUQO-0002rz-SM for bug-gnu-emacs@gnu.org; Tue, 08 Nov 2022 14:38:20 -0500 Original-Received: from mail-pg1-x534.google.com ([2607:f8b0:4864:20::534]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1osUQN-0004vb-8K for bug-gnu-emacs@gnu.org; Tue, 08 Nov 2022 14:38:20 -0500 Original-Received: by mail-pg1-x534.google.com with SMTP id q1so14239137pgl.11 for ; Tue, 08 Nov 2022 11:38:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=6tckk27+LuJ7dXztHUMWue6j5dNhYjy3s0YGAEN73es=; b=oQsumyj48RHB3ca2Vynr5KL+dXoclM0sNvZj4nuGW3qeim9Zsc0Qy/zbIlBN/jeR/t yfV4tEiOY5OZ8flfdVtbkxm6lFyOFj+CuyUJzGm46X5IQlN8k7qEuCvMLzqIwZ94q69y 7MU73U+CjCwklA9zsRNI7S9pXS1+YfSmD6s1C2VJCgmHSwh77XcwHTV6GpEmkMMLTB/T 9Di62o0SkVjcTXyb8tHXHL9Gh4htpqEAcZ9IbZYW+D5qTWW7vssdtMKqEmF9sianNfOB ta0PyLXuYfhCME0WKVfFrXjVi3S5FgDtL7blUhBHXMpPQHln/Bn/vijXLFuKPgXlEkC7 l6zw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=6tckk27+LuJ7dXztHUMWue6j5dNhYjy3s0YGAEN73es=; b=6BK7j5LLDBbUnpEiukJFDok3zGVzfXMH0aLZr5KEH6BRLn50Ho/yVY/7f6NJStKMkm Ri8VdEPAvvo7OvSpKwZEShPXDfFcqCTlIJLrn64Ijsv388uCtDuMP1f7dtypD0qPDQIa P9/skpVSCYbZrjx/3l+RCIzPpxcsbyHFwHZLwCzrIIQSDuXIoEQta3n29aKEPSzSO8bI eWCOPEaKyqpaMyWvPl/I62yrfFCBzKPfyCM5mLJ3oDfnEwjhBs8FZOJHexZx4CreJBlJ H35R76ejfbjuJ3HdEbLvaK8dN5obFweXIZcYJF5a8xMR60OkWCN8gQyteeDu4IfG7fSH +x1w== X-Gm-Message-State: ACrzQf0S5sqw/OM+Hc+llZS5vw3RPI5KsVxuiCXFp4a2OgIhkaBLaXq+ 3DVnbl1O0zIGBVnJQmHe8T5vWyHooRXZ7Pb0V6WFKXOWJds= X-Google-Smtp-Source: AMsMyM6I+850gefKOaUKykk7ZBbXT0IZDqPxrXWIzueIFNU8cEbwEVF8NYoUZ0GH+ksVwWufqcJS8WTh8+Fam3NYy1U= X-Received: by 2002:a65:5644:0:b0:46f:e930:1968 with SMTP id m4-20020a655644000000b0046fe9301968mr36049296pgs.458.1667936296952; Tue, 08 Nov 2022 11:38:16 -0800 (PST) Received-SPF: pass client-ip=2607:f8b0:4864:20::534; envelope-from=joca.bt@gmail.com; helo=mail-pg1-x534.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action 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:247358 Archived-At: 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?