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#60077: 29.0.60; Is xterm modifyOtherKeys support broken? Date: Thu, 15 Dec 2022 11:06:57 +0200 Message-ID: <83len9kpce.fsf@gnu.org> References: <831qp1mamr.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="11224"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 60077@debbugs.gnu.org To: Len Trigg Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Dec 15 10:08: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 1p5kDv-0002g1-Lo for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 15 Dec 2022 10:08:15 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1p5kDk-0003f4-Vh; Thu, 15 Dec 2022 04:08: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 1p5kDj-0003eJ-0o for bug-gnu-emacs@gnu.org; Thu, 15 Dec 2022 04:08: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 1p5kDi-0006Iz-1c for bug-gnu-emacs@gnu.org; Thu, 15 Dec 2022 04:08:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1p5kDh-0000Pb-Hp for bug-gnu-emacs@gnu.org; Thu, 15 Dec 2022 04:08:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 15 Dec 2022 09:08:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 60077 X-GNU-PR-Package: emacs Original-Received: via spool by 60077-submit@debbugs.gnu.org id=B60077.16710952271571 (code B ref 60077); Thu, 15 Dec 2022 09:08:01 +0000 Original-Received: (at 60077) by debbugs.gnu.org; 15 Dec 2022 09:07:07 +0000 Original-Received: from localhost ([127.0.0.1]:42572 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p5kCp-0000PH-4x for submit@debbugs.gnu.org; Thu, 15 Dec 2022 04:07:07 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:42390) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p5kCm-0000Ou-4g for 60077@debbugs.gnu.org; Thu, 15 Dec 2022 04:07:06 -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 1p5kCg-0005wy-DK; Thu, 15 Dec 2022 04:06:58 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=RWR80sODode1g2S0gtQtKkgMSbsqxK+zAkiyPjedxPE=; b=l4EWsdN3qLJC HcMDWOyVSJPMIFErAW8lQUDCNARNlRGXNlF1pILDrnZ00qrgScxas6Bu4WwoNxXeElhzFqLv+KxrU G3h28ZtlnfXJj5I2WIogs6VsCc4RnASfP3HCwjl4aIMdrSBUTm4u5AQEmo7WVeJ2LragTyt9zFoFc syTW2qjq+zMnwD6XD9twQVIJdzB2FwqU/VzC4qkE7Kav1tNv/CeUd639dp0O2a6MDOY0x9nC0pV6s J6dymcRdRveFqLG0avI+uLkMo0wNYuztzsLbEiwUvQMr9bvNamEctkfaZlUTcOVnkgEFSFLjUKhYL I4P26TcQL+jbedtCyLl/hg==; 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 1p5kCf-0005wk-UI; Thu, 15 Dec 2022 04:06:58 -0500 In-Reply-To: (message from Len Trigg on Thu, 15 Dec 2022 21:38:57 +1300) 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:251042 Archived-At: > From: Len Trigg > Date: Thu, 15 Dec 2022 21:38:57 +1300 > Cc: 60077@debbugs.gnu.org > > Which terminal file in lisp/term/ was/is Emacs loading at startup when > you use wezterm? > > For both xterm and wezterm I have the $TERM variable set to "xterm-direct", so they both use > lisp/term/xterm.el (which is consistent with my hack of xterm--init-modify-other-keys affecting the behaviour of > both). My hypothesis is that under both xterm and wezterm emacs is sending the terminal initialization code > for turning on modifyOtherKeys, but the older version of wezterm just ignored it (and M-SPC worked). But now > they have added modifyOtherKeys support, it is behaving like xterm (i.e. broken) by sending M-SPC with an > encoding that emacs doesn't recognize. Do you think it's just a matter of the dolist on line 466 of xterm.el > needing additional entries (I don't see one there for M-SPC)? I don't really know. But one solution is to disable modifyOtherKeys in your init file. Or maybe you could dig deeper into what xterm.el does with modifyOtherKeys support and tell why M-SPC fails.