From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Ergus Newsgroups: gmane.emacs.devel Subject: Re: xterm [menu] key definition Date: Wed, 25 Aug 2021 10:58:10 +0200 Message-ID: <20210825085810.ryimt5tsanjfqt4n@Ergus> References: <20210819024728.kgnf6jmpakqdto4p.ref@Ergus> <20210819024728.kgnf6jmpakqdto4p@Ergus> <87mtp71i4s.fsf@mail.linkov.net> <20210824164036.caohbap24666ij35@Ergus> <20210824232033.ksesfe3ewflbsv63@Ergus> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="18913"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Juri Linkov , emacs-devel To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed Aug 25 10:59:17 2021 Return-path: Envelope-to: ged-emacs-devel@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 1mIokf-0004i3-7K for ged-emacs-devel@m.gmane-mx.org; Wed, 25 Aug 2021 10:59:17 +0200 Original-Received: from localhost ([::1]:45556 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mIokc-00060t-VM for ged-emacs-devel@m.gmane-mx.org; Wed, 25 Aug 2021 04:59:14 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:57258) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mIok7-0005Kd-Nn for emacs-devel@gnu.org; Wed, 25 Aug 2021 04:58:43 -0400 Original-Received: from sonic304-56.consmr.mail.bf2.yahoo.com ([74.6.128.31]:35892) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mIok5-00065R-Ey for emacs-devel@gnu.org; Wed, 25 Aug 2021 04:58:43 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aol.com; s=a2048; t=1629881918; bh=4qvAOmI3h1YhvcY1IjhuoIluEjx0cMDo/TffaQdg6p0=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From:Subject:Reply-To; b=G75vCJFZI4RrWMwvRRFuWHQqg0Ev9z2qqDgFivApeYhWwAeRd9F9cVzr7+QlxHe5G3dGJmqpm9OiCaY9yUNMi5bY0dWXcSGkthbrBCSEaPXLvOP371YMKAt0uqqiIMcbyAEJRJo/koWoHPCvZf5g6Kuy7xZ+2YXbw6SxNRYbAsgUUXE33PjyXPIPNdFVAJCbpbHUIOYXRcqPblY7dcQDSmoNoHrMAPWqOI+SYeKasnI5EyH+HGXqhSir/JYo4UfdeV3ivl+XT+vwwaCbW8q3Vbt5ZEtmcJ8nMBcW953SCV8GhIwflqIRz9ne4YKD9X3icr863Uxa+b5OOtXOPAAevA== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1629881918; bh=L1Fl7AEO+ZZW/+D0qtUdB+n8ukU/fo3MVT/wBjqTZwI=; h=X-Sonic-MF:Date:From:To:Subject:From:Subject; b=swNldFBn0U0u1mGzlg1TZ6Xhke2E5GqOlILsTasrJsOBuRHaEvoZ1iDiLazLyI56MXD4VtBxnqhLarv0Sx+8b76J0d4I11WC6M4W4LcwD+S0Vq1YcxneyT/s4Ai7Evghsza3RIzli/d9XjC/9tdSi/TZPPh+z5XXcL2VvEarf+eFuHFLGXTX0N3Oin993x+3X0cwbtV/MWkaKL0HgCC3TmY12UCBOySHdOkY1BYax/CxnbmRJG/mtWoWLOoKGOpsZkAE+GX8CXB8umUx/xYylkrNcqmvsZ8M1oTziBRMM0wdczKtfdF15bJV4gdNzgzFICAJTJoOKrEx6nGmX1+I8A== X-YMail-OSG: GvVrR9sVM1kIUJoe7_bf0sSCNlgk3pFZ73EAs01rtJHvwVLxDsqvdwJ0C1KV1xN 40R7FdFtz8J0o1kL4bP0A.WMM8YO5HHBPl8gbiNTpit625.HFG7m7.7jTL8wxSp8Vwh1UIo04hgf kRQUkXZa95zH0pdW8A9mDFIgOgHc1ZEqbwc3cLJxYMNpCNFHCpaUQpIAJylPQwnDf8117WAvKPY3 HedXAIvKYb7OZQv4sOo3RxsujDYZZZ9zCM.FnoemlSiyuRBIEp.KYNGqaMAxfBlT__ifOtfywhjO XNjrjqVDjwFtK5zyRGdyiKXxeLmZy9xJmFNuVqLoGEntFoDioPrdQR.8t9SBxDfVSDoGT1Dok9pR lzhqU06UG4IFYk3OtjSNUDXdXVhRwv.wR9j6tZIQFPzU0v7SP.TE3_L.GtVeXsTn47nnhZGdxAIA QJtRUUZ3SUoGGoPY2Cyr4pvL2KV34acFhk9.EhEVwjstqq.rvvrkCs4y0A7f1tOOUB5aFgSji53D plNdw8aoQVGbMnp0NaWe2j6IkyyVdVH4SOFon1LOU9w5kOk4KIXEKHYtPJ2zPYfBg6ZtNuCq4zjX fRMIc4CEOpBeLbR6ZlNpRBQ118QMNmrkwaA36FXYIEqSPKPQQcUheu1GTzeX7aZT7JEhhAvjw.pR XWPRaXUiZwYuNyEYiRIFIOpo5g3dj0gtpw1QD4Jn1Bz8qIB2Jp6dDdZ14pywApkpq5EZIVYSVu_I NY1__FSMmkXzwZS5lTy3D4mR8YiYOeOYErGDM5qgTIhwexEaIdzMLbxSZypYp_RGse.c_ToTOWo2 Qh6QXx0OB1pze1FQWY_8hkF5tLfaEFXz3LhW7sYwbY X-Sonic-MF: Original-Received: from sonic.gate.mail.ne1.yahoo.com by sonic304.consmr.mail.bf2.yahoo.com with HTTP; Wed, 25 Aug 2021 08:58:38 +0000 Original-Received: by kubenode510.mail-prod1.omega.ir2.yahoo.com (VZM Hermes SMTP Server) with ESMTPA ID 4000ab74a7a593866cec3ccae212e795; Wed, 25 Aug 2021 08:58:34 +0000 (UTC) Content-Disposition: inline In-Reply-To: X-Mailer: WebService/1.1.18906 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.aol Received-SPF: pass client-ip=74.6.128.31; envelope-from=spacibba@aol.com; helo=sonic304-56.consmr.mail.bf2.yahoo.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, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:272949 Archived-At: On Tue, Aug 24, 2021 at 10:53:55PM -0400, Stefan Monnier wrote: >> Please give a look to my last email to Eli. I attached an answer from >> the xterm maintainer respecting to that. That included a xev output and >> his comment about this. >[...] >> xterm does not map either [print] or [menu] in terminfo but maps >> kf16=\E[29~ (that's why urxvt mapped S- == == [menu] according >> to their convention) > >So, IIUC he's saying that xterm emits `\E[29~` not for `Print` nor for >`Menu` but for `F16`, right? So maybe we should have > > (define-key map "\e[29~" [f16]) > >and then remap `f16` to `menu` maybe even via `S-f6`, but we already >have a remapping of `f16` to `S-f4`, so it looks like a big pile of mess. > in xterm normally `f16` == `S-f4` because the last fkey is 12 not 10. The one with the `wrong` (or less standard) convention here is urxvt. So our current remapping is fine in this case >> The real question is why emacs mapped \E[29~ to [print] in xterm; > >This dates back to: > > commit 92abb02b9b65b95807fd8fdccad10feed0dd3a96 > Author: Karl Heuer > Date: Fri Jun 9 02:31:33 1995 +0000 > > Initial revision > >so maybe some kind of xterms back then did that? > >FWIW, the f16 => S-f4 mapping dates back to: > > commit 35b1b8abe3d3833ecb4b4cee75b7340ffb707d65 > Author: Dan Nicolaescu > Date: Tue Apr 26 05:56:22 2005 +0000 > > * NEWS: Mention xterm key bindings. > > * term/xterm.el (function-key-map): Fix strings for > {C,S,A,C-S}-f[1-4]. Use substitute-key-definition to bind > {C,S,A,C-S}-{f1-f12}. > And it is actually fine ;) >Do you have a "menu" key which emits the `Menu` X11 event and for which >your terminal emits `\E[29~`? Indeed. I have the same behavior the xterm maintainer described for his system. >If so, which terminal is that (details >like the version may be relevant and maybe the OS or environment)? > > > Stefan > xterm: 368 (but very old versions have the same behavior), OS: Debian, Arch Linux and Open Suse different versions.