From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Len Trigg Newsgroups: gmane.emacs.bugs Subject: bug#60077: 29.0.60; Is xterm modifyOtherKeys support broken? Date: Thu, 15 Dec 2022 21:38:57 +1300 Message-ID: References: <831qp1mamr.fsf@gnu.org> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="000000000000a9cf6705efd9c9eb" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="33164"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 60077@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Dec 15 09:40:24 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 1p5jmx-0008Qd-T1 for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 15 Dec 2022 09:40:23 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1p5jmd-00031C-Ug; Thu, 15 Dec 2022 03:40:03 -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 1p5jmc-00030z-Mc for bug-gnu-emacs@gnu.org; Thu, 15 Dec 2022 03:40:02 -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 1p5jmc-0002Q2-EA for bug-gnu-emacs@gnu.org; Thu, 15 Dec 2022 03:40:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1p5jmc-0008Sg-53 for bug-gnu-emacs@gnu.org; Thu, 15 Dec 2022 03:40:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Len Trigg Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 15 Dec 2022 08:40:02 +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.167109356232498 (code B ref 60077); Thu, 15 Dec 2022 08:40:02 +0000 Original-Received: (at 60077) by debbugs.gnu.org; 15 Dec 2022 08:39:22 +0000 Original-Received: from localhost ([127.0.0.1]:42522 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p5jly-0008S6-0U for submit@debbugs.gnu.org; Thu, 15 Dec 2022 03:39:22 -0500 Original-Received: from mail-oi1-f170.google.com ([209.85.167.170]:40634) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p5jlv-0008S0-U8 for 60077@debbugs.gnu.org; Thu, 15 Dec 2022 03:39:20 -0500 Original-Received: by mail-oi1-f170.google.com with SMTP id k189so4734578oif.7 for <60077@debbugs.gnu.org>; Thu, 15 Dec 2022 00:39:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=xu+OtJcpHtX5XH8jlKCPgNtY4QPG1WDMwy3X4hUTzEg=; b=IawnPvUAFXfhLME06iGSkQV5Ssx556vaiId/6+qT0hkgli+JTz0h9BRxMjJq7Y8HtG r6xJisjzuk2bQNC8xJDXnZagbftikrFilqTqp+8C0rEJRq3m4xe+F+8t4aFxN/pe8Hh2 7qongRO5CWyL8+WgwmZBqs69YbmPc1Uw1XKcFcVN0rI2oipfEPx9kXvaCj15pXsOt4Ge SLhYeFOU8iUDSVSGqv8Wuwpc2b5R0NXfth1OfgKDk4cCUUct8XL/W0RMy4/N+zH9pVPg 6FplZxPfnVgavwpZ1ooslyZxGy7F8AdhzmtioGEBqlS2aqdPQby9tfUwO1tojMTwBlbT Ub0Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=xu+OtJcpHtX5XH8jlKCPgNtY4QPG1WDMwy3X4hUTzEg=; b=viGbiyX2JFRfX+x8vC9bRCQIFdtOBKKe6wUBa0K8HIrwRvcQTLqfgtLnWwf0t48/gZ 9cFN2ItYBHXpAMRvE3uaBjVq+xkVkgKGCSdnuBs/a7s8h07y77Z9ea4yv7EiO5gBeqmD 3TavyXQLodD1f+pHVz604MyoHaBz5NM72eZeBoLFLrKF23iz7cvQvL6AzITRl5wQITi6 ax4bGzkIErFN+gOCvAiCSfSmUyRUai+M58EcVweuI1/DlEmAyICDosS67IdI8khRi0WQ Lkd+5GckEa1JMnZhZuT/UoyRsgT3b5MejvdighOQXBwnRLCaQyRDR723GZk2VIzXRWfG Wkfw== X-Gm-Message-State: ANoB5pmWMrk1YMKRPRrkQP5tpJObUKM/af5EaYYldhIFaITq053Cgxq8 7UXW9MOzTRXRt0BfM0PGd25LkVrXEA8QiIXR2IpObAgDAf0= X-Google-Smtp-Source: AA0mqf528yOXqR0C/UJkprQuh61G8CZho2ifJx/B+/RTwKBiTJlHDrHXYZuMDxSOtgg393LNR18pNdaZR5aDpG2lX3M= X-Received: by 2002:a05:6808:d:b0:35b:cfac:bc16 with SMTP id u13-20020a056808000d00b0035bcfacbc16mr303989oic.64.1671093553842; Thu, 15 Dec 2022 00:39:13 -0800 (PST) In-Reply-To: <831qp1mamr.fsf@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:251036 Archived-At: --000000000000a9cf6705efd9c9eb Content-Type: text/plain; charset="UTF-8" On Thu, 15 Dec 2022 at 19:41, Eli Zaretskii wrote: > I'm not sure I understand: it sounds like you are saying that M-SPC > doesn't work in xterm, either? (Which version of xterm. btw?) Yes, I am saying M-SPC does not work in xterm (which reports its version as XTerm(353)). So the > question now becomes: how did it work before that change in wezterm > for you, and why did modifyOtherKeys feature broke it? > I don't think it worked before the change in wezterm (I haven't used xterm for years) -- I really just tested with xterm to see whether the issue was specific to wezterm, and was surprised to find xterm already broken. 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)? Cheers, Len. --000000000000a9cf6705efd9c9eb Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

On Thu, 15 Dec 2022 at 19:41, Eli Zaretsk= ii <eliz@gnu.org> wrote:
I'm not sure I under= stand: it sounds like you are saying that M-SPC
doesn't work in xterm, either?=C2=A0 (Which version of xterm. btw?)

Yes, I am saying M-SPC does not work in xterm = (which reports its version as XTerm(353)).


So the
question now becomes: how did it work before that change in wezterm
for you, and why did modifyOtherKeys feature broke it?

I don't think it worked before the change in wezterm (I= haven't used xterm for years) -- I really just tested with xterm to se= e whether the issue was specific to wezterm, and was surprised to find xter= m already broken.


Which terminal file in lisp/term/ was/is Emacs loading at startup when
you use wezterm?

For both xterm an= d wezterm I have the $TERM variable set to "xterm-direct", so th= ey 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 t= hat under both xterm and wezterm emacs is sending the terminal initializati= on code for turning on modifyOtherKeys, but the older version of wezterm ju= st ignored it (and M-SPC worked). But now they have added modifyOtherKeys s= upport, it is behaving like xterm (i.e. broken) by sending M-SPC with an en= coding that emacs doesn't recognize. Do you think it's just a matte= r of the dolist on line 466 of xterm.el needing additional entries (I don&#= 39;t see one there for M-SPC)?

Cheers,
Len.



=C2=A0=
--000000000000a9cf6705efd9c9eb--