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 01:20:33 +0200 Message-ID: <20210824232033.ksesfe3ewflbsv63@Ergus> References: <20210819024728.kgnf6jmpakqdto4p.ref@Ergus> <20210819024728.kgnf6jmpakqdto4p@Ergus> <87mtp71i4s.fsf@mail.linkov.net> <20210824164036.caohbap24666ij35@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="8032"; 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 01:22:12 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 1mIfkC-0001z5-0x for ged-emacs-devel@m.gmane-mx.org; Wed, 25 Aug 2021 01:22:12 +0200 Original-Received: from localhost ([::1]:38764 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mIfk9-0000tp-GR for ged-emacs-devel@m.gmane-mx.org; Tue, 24 Aug 2021 19:22:09 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:46182) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mIfjB-0000Ci-Rd for emacs-devel@gnu.org; Tue, 24 Aug 2021 19:21:11 -0400 Original-Received: from sonic313-14.consmr.mail.bf2.yahoo.com ([74.6.133.124]:45272) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mIfj7-0006iv-Jm for emacs-devel@gnu.org; Tue, 24 Aug 2021 19:21:09 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aol.com; s=a2048; t=1629847262; bh=7RxBkGiHvsJxYg+QsppmzLyHvYcahDsN9ymKF1t7MnY=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From:Subject:Reply-To; b=mW4vManlCu2mlBIaaPwDs0oswgMCXJHxbmKFjJgbf8319Mw/oibUlaYHFl/t/HZutfyGOjZRwGVZeGxyFrwBO2gTX4I/Jvav5PhAI46lkvRZpEubW61Tl+2HNVymVRXtsI7F2EeJL9uPwdRLuFx6inPxT9jORNuSD4KXEnK185RmG+mRKdh9ZmdqhPfQUSpE8FlwPKvQw7lCFLaQun4/tzgEjUiikOqZntMcLefhivHlkXG9RWxKF4qpe6LLESeL8RbWRj46NxzV0ANO7UoxD45uaaMAJzoSwd5lACyr2c9voPa6B+Hce0l/xCJBEdG4q+JBW3XOAJB2H+1Djj1hQQ== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1629847262; bh=Asa8B49qH0wAlT/DzL2N3d2aGA6cYBwInCeiYtGRTdZ=; h=X-Sonic-MF:Date:From:To:Subject:From:Subject; b=ZfTkXUDvsqZ1O6kV3EA5cU/ko2dLJGDi+wJTk6CgNsUihu2yB0dElw5xAYq3orEL4rULv4mFlpX4RoQ0o2ylPJ9/8JSr+jZP9lDBNC0BxOjK0Gj0+fQoyzwkD7ZY6WeTb9spFFVdHLXHJm4ERCvpxwIeu9z1cwEjDm0JGDuPkhbeIvDx7T8cfuzHAwZ2xej8NLltPMu9+JckQlww4znB4fJoEt7CD4iX7bQp2xOBOvWBmt2/qy6wZX/ge6qIO8II9nYLrGTL5wCh30ijE6YPgS+nMfVvuVTbixDhGjRhX+V644AjUDaqYybZmyH5RPkPBMy9otivYmYsI/b3NEVMAQ== X-YMail-OSG: i_o0QkQVM1lBRDfAe7Ak0BxB9AhiRNY6zM8g14RoCgm5g5bMmnM76Mwf6oMfF9x w4VXw.0bpt6aAx_OIkOqMfr1Aji07vfyrSpZCjC803bEWQ3D_8lgv6nPpr9uqKeHmtumMc.8Zh5b 8aHUzw6x6mSShlL4oAdUpukOJAfupjkLTVTIiuRvIN9Y4v.c28w6QBQEDNgA_FJBubJeqU9Q6qRH PpNqsvmql.PcbmtFFZpl6hKso9td93Pk2Ey1dIbBlQLyuqjPsCLTccw1cyii.bDUWLJPDdIYpsvv Qmw1h2TUI5r.hTDocwc4YF3._7dV_ABxJgzz0VGV8CjMiyg.OBtwebAW7UkXODTzLw7BQhS3ToDP 4J8TZ_0DNqqXVQU6DztBVe3USYYjVFzwlf1sD8K66hMNguz8MztegoD2of14a_wqNsnGR0sozoMc GOG6Yae4cR2XzTLp66GPJqITYB1b8WE_5RWc0rA2X7cPZJfDa3xxJNJjxxO71CCsBJa9pIgumJ7O SVRNQ6ReJYR.xWdmRmzuvplJ_8KRT6PQgcVa6rlkz3zK0bs4qNhoE_KQ4.AT06auoaHOVjfT3vs. .Rdae.g8aikAHRktS3pxrVYPfJ5AX9xWmI8G2Q.KiouwZHg9EhpF0JeZyskQ6dz.m4z_b7B4zTEk 5hD9k.lLRwYif2i.wW7pKsFeMVLvKn3oJwDZvxYcn9QdZ10PdvJUm82t._l9OyU98dJPzsCvay__ ow21A2ucq_hUrdvRg4DVLQWV8LGS7QzATjgdrkCxy_u54ycmyj.iYGUe2Wo8xDmYKEWKSxa4vyKE BJ52agSAqG6xMFXPLz4HJYjJEvQKPG_Ak_9qIIR8kF X-Sonic-MF: Original-Received: from sonic.gate.mail.ne1.yahoo.com by sonic313.consmr.mail.bf2.yahoo.com with HTTP; Tue, 24 Aug 2021 23:21:02 +0000 Original-Received: by kubenode524.mail-prod1.omega.ir2.yahoo.com (VZM Hermes SMTP Server) with ESMTPA ID b76d443c4b581cd8ab3408a471561bee; Tue, 24 Aug 2021 23:20:58 +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.133.124; envelope-from=spacibba@aol.com; helo=sonic313-14.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:272934 Archived-At: On Tue, Aug 24, 2021 at 06:16:01PM -0400, Stefan Monnier wrote: >> - (define-key map "\e[29~" [print]) >> + (define-key map "\e[29~" [menu]) > >This might be right, but we need some more concrete evidence that indeed >`xterm` maps `Menu` to `\e[29~` by default and/or that `Print` is not >mapped to `\e[29~` by default, or something like that. > >That info should be available in `xterm`s source code or something like >that (I hoped that it would be visible in the `app-defaults/XTerm` file >but no). > > > Stefan > Hi Stefan: 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) In xterm that mapping (S- == ) depends of the variable modifyFunctionKeys. But in any case this does not affect the [menu] key that is not translated. The real question is why emacs mapped \E[29~ to [print] in xterm; because the Print key is normally intercepted by the windows manager. Best, Ergus