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#73849: 31.0.50; Binding ESC does not throw an error, but binding any M- combination afterwards does Date: Thu, 17 Oct 2024 14:05:55 +0300 Message-ID: <8634kvoup8.fsf@gnu.org> References: <8734kvkp7d.fsf@protonmail.com> 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="26169"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 73849@debbugs.gnu.org To: Alexander =?UTF-8?Q?Pr=C3=A4hauser?= , Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Oct 17 13:07:08 2024 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 1t1OLU-0006cz-Ij for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 17 Oct 2024 13:07:08 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1t1OL5-0006Uz-Qg; Thu, 17 Oct 2024 07:06:44 -0400 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 1t1OL3-0006UW-UF for bug-gnu-emacs@gnu.org; Thu, 17 Oct 2024 07:06:42 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1t1OL3-0002A3-Ik for bug-gnu-emacs@gnu.org; Thu, 17 Oct 2024 07:06:41 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-version:References:In-Reply-To:From:Date:To:Subject; bh=aAHuEdv1s/IXYVr2mh+dnBOYOH9Vu8+HvoP7eY5uG0s=; b=HBe9bb5cBsCQVjoowQwqd38T+tvlrn0C0v3LGJzgxFW2aNsIXyZrGlv/mWfoRY4fqT7c4O10Is9k8+vdOg6gCfZLiQty5YJWbbF+nnaevYCCKdrmWwni4a6gisD/o54ZDztrWllQ5z2vAHzpxdkX2IVYZOoTLxr1Pnz20RqfNI6LH7Dh7Fml+mUb7ZHNiMnw8tfUbNNXjQeyrjKiZGjwPR9dfH+Kpkf7FMN6WfNM7Mym0hEwx0hVnFkI0iRVGs/DxVckphCv/8gWOJGDxen1IZsWLsOzLhZ4q95AtJpY12KQ4jBgdRA1+3rsUcU+TAlA8mz8Z5/7GfsirWgb2amjcA==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1t1OLO-0001ZO-2p for bug-gnu-emacs@gnu.org; Thu, 17 Oct 2024 07:07:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 17 Oct 2024 11:07:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 73849 X-GNU-PR-Package: emacs Original-Received: via spool by 73849-submit@debbugs.gnu.org id=B73849.17291631915982 (code B ref 73849); Thu, 17 Oct 2024 11:07:02 +0000 Original-Received: (at 73849) by debbugs.gnu.org; 17 Oct 2024 11:06:31 +0000 Original-Received: from localhost ([127.0.0.1]:33552 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1t1OKt-0001YO-AD for submit@debbugs.gnu.org; Thu, 17 Oct 2024 07:06:31 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:58882) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1t1OKo-0001Y3-Jo for 73849@debbugs.gnu.org; Thu, 17 Oct 2024 07:06:30 -0400 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 1t1OKN-00025x-E9; Thu, 17 Oct 2024 07:05:59 -0400 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=aAHuEdv1s/IXYVr2mh+dnBOYOH9Vu8+HvoP7eY5uG0s=; b=p2l/cd46EylTXabkl92o UG3kMkvpQ16KGVfBVBxj7gOEy4VAeQC2mYIdP+K3mHM9adrcwDZ5VnqSrf72vtuLzCsX3nVeShsp9 a7yciueqOzTBTjpTymEqqlo94a0Gg+JV4xf6JeGNEpuE6eqQYg6u/E0rPKhCKK2WIBWiJVwlqPliN sJR+Ib3ggWmKs45g1kqsMm2zVfz5dBmGBYpje2kTJFXvDt0Uq8Wi+b/9fVaxi9PxONCH6n2ygW0OG RqA+2HeoyFuTFn8bntDvgfo0zrqlavW2wIg07RJqWeMACQlATNV57kGHi9tLi0Tm2sySzlLqHMxZq QjlMNRzyliBwbw==; In-Reply-To: <8734kvkp7d.fsf@protonmail.com> (bug-gnu-emacs@gnu.org) 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:293721 Archived-At: > Date: Thu, 17 Oct 2024 10:18:18 +0000 > From: Alexander Prähauser via "Bug reports for GNU Emacs, > the Swiss army knife of text editors" > > If I eval the following > > (progn (defvar-keymap test-map) > (define-key test-map (kbd "ESC") #'test) > (define-key test-map (kbd "M-i") #'test)) > > I get an error > > (error "Key sequence M-i starts with non-prefix key ESC") > > And I get the same error if I try to bind any other key combination > containing a Meta modifier, including ones which also contain other modifiers. > Crucially, I do not get an error while binding ESC itself, which I guess > is what should happen. The error only appears while trying to bind Meta > keys in the map containing ESC. It also doesn't seem to happen if I bind > M-i using a vector instead of kbd. > > This was tried while starting Emacs without an > init. I don't think this is a bug, this is how Emacs handling of Meta always worked. Stefan, any comments or suggestions?