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: Mon, 23 Aug 2021 19:53:17 +0200 Message-ID: <20210823175317.sgqdq4xqh63lzznz@Ergus> References: <20210819024728.kgnf6jmpakqdto4p.ref@Ergus> <20210819024728.kgnf6jmpakqdto4p@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="17757"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Mon Aug 23 19:59:18 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 1mIEEA-0004Q5-2X for ged-emacs-devel@m.gmane-mx.org; Mon, 23 Aug 2021 19:59:18 +0200 Original-Received: from localhost ([::1]:59300 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mIEE7-0008LC-Sg for ged-emacs-devel@m.gmane-mx.org; Mon, 23 Aug 2021 13:59:15 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:34454) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mIE8t-0006PD-WB for emacs-devel@gnu.org; Mon, 23 Aug 2021 13:53:52 -0400 Original-Received: from sonic302-3.consmr.mail.bf2.yahoo.com ([74.6.135.42]:36957) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mIE8r-0004IP-HZ for emacs-devel@gnu.org; Mon, 23 Aug 2021 13:53:51 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aol.com; s=a2048; t=1629741227; bh=NBVJiQRJq8SKR4N+AWzzKju8SYKlRCx17wKdu8a3ivc=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From:Subject:Reply-To; b=hzMlKC21iIIEBYQoBOejxnCHLp0KeqGJf4VY8crgukkOzwS02e6dkGpSsJ0sL6RAJOh8ogcDYBqxVNn1EZf1j10tCpdcJAhyQ8bKGN7eLX4MkkLsos8cWK+u5Itto8TZ7U4Lnes7of6+i5PC/sldL/Lox3JgPCzvGdLJhGQoX0piYxF2GZ7+RcoxMjtqbzd1qkMWC/AUlHhB6eUIATFg1u+0Ag+XfKun2eeUIHO8JQsH/sDmfoqCSK6Z5SpFE3Ky+9Yx+03e9gfgFtFD+DfcTRimsbBFG46mnK+OKLMcInoEKUpJ8OgpA6ZJI6g43G7UB1eq9DThHrngb/iPyBcEoQ== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1629741227; bh=Th0mZLMLUitVEZ0RPpPOXmQx954fL1OhGnDZTC3IQc5=; h=X-Sonic-MF:Date:From:To:Subject:From:Subject; b=Dt6+SzbaZdDhVKjudwS/gqliy+sdQc9WGJ5+2quluiTu3jnq5nIfX5rhvd4tiWksk065fdcwnpFDNA6sy6eCDgqAh9iIrQTDLcHUmJYRmpEsCdhKlTa1RRgmJkPdCCXt4AV1AS2FDpKcMygTKLF5NYT7zjpfe0vmY5Jr4rE6MZJz0BaqLJ1OQLr9uHNnRDv3acqrb9tUx/7uOrMGZgHlDSvRa+pkLJdbyQMUeKurVnAIZnLAOi2jhorHC/XZLBVZ04/z0eF+XtOQ9s2DYN/xnadz8nVRVvEdEwy79EqrF46ZWQvRRahwMneWusidYWZsr/20SdVx3vMNLkZ+NYl72w== X-YMail-OSG: lR_GylMVM1mjMRtDAkTmY3HRy6R0yqmFjEJqZnFlDZsuhaK2z6RTePLzAbily94 sj02sKzi1eNv90wSzdzWybgRrJtzimdyoScPXZ8kcpJoXo5tEkh9hzUFnHVWmcyAdLusJ2yd_3.o 8H0.R2auuOYhQ__xOqaScuTq18m0wAoSGxJ1PO7nQgVBk_S0nU3.ZD7qIAif.Chc3qeennh670.5 hIA8u3.9Hu5ucSaUUzm1lqTm1LLBtvlKu0S11eFqoD88_wI21FWjPBYW_MQl0JHaaGoMR0qML2lc EHauFzF3Z4nfR4.x9uiBzckJbQEPDuurXbyAexifbktcOw..gwTTN8cude6v.YitLIE7CUZi6XeE EgSfZ3ZxHdz2BSSgM_84.9GGJDaPR4S4XdMjGIW16uoIengFsOHKbMe3I.0ZTVCuc.t5sZzfXPu1 on.xYSs7uNQYA2mf.YopRkV2yaOOx_BLdFJgnEzPgHuh5EGC48TXJiUmUNBiZ5AdgSfrUXE1rxz0 mbAWj8zx8.wggiJNiNhUnBVOKLdmTDQ.H28_1XZHbY8EdoHyS33SKVeODzf0IwaBz3XMsfVQ1p9w bhTju3IyQ6LU3sv6N2bTlgPcu9nyhp8toNnw8RDuQLMXGuZnh4GWKphB7jsH6TWirnPPcE8eS65p A4E5jUudTWhbgLiF7zUeFJNVxNaZ7lHFG5kNcspgVOH0hlpXqkPRYpc9TRtd46M3H6wxS_ontP8Y 9xFHhjL2F5LMq71fvUASzQCsaSe_XsvRbulImsF6x.0NZN8C7OpnBAf9xhyb69amXa7zbcBd0twV QR1h76IvxrQDkDWZA95QtjajVuTtoucQbFSAwdqSg3 X-Sonic-MF: Original-Received: from sonic.gate.mail.ne1.yahoo.com by sonic302.consmr.mail.bf2.yahoo.com with HTTP; Mon, 23 Aug 2021 17:53:47 +0000 Original-Received: by kubenode532.mail-prod1.omega.ir2.yahoo.com (VZM Hermes SMTP Server) with ESMTPA ID ce5e1d55fdf77b5eddeb9983fb1ba280; Mon, 23 Aug 2021 17:53:41 +0000 (UTC) Content-Disposition: inline In-Reply-To: <20210819024728.kgnf6jmpakqdto4p@Ergus> X-Mailer: WebService/1.1.18850 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.aol Received-SPF: pass client-ip=74.6.135.42; envelope-from=spacibba@aol.com; helo=sonic302-3.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:272880 Archived-At: Hi: I will insist on this. The change is very simple, but I don't know if there will be any consequence. On Thu, Aug 19, 2021 at 04:47:28AM +0200, Ergus wrote: >Hi: > >Due to the recent context-menu feature I was trying to bind the [menu] >key to the context-menu and just noticed that on xterm emacs detects the >menu key as [print]; so it does not trigger the execute-extended-command >(which is bound to , and M-x by default). > >cat+xterm shows that the menu key sends "\e[29~" > >Grepping in the term directory there is. > >lk201.el:35: (define-key map "\e[29~" [menu]) >rxvt.el:67: (define-key map "\e[29~" [S-f6]) >xterm.el:353: (define-key map "\e[29~" [print]) > >And xev says that "\e[29~" is actually [Menu] and detects it properly so >there is a mismatch here. > >I don't know if this is an issue or some design choice made long time >ago (in 2007), but it makes that the menu button does not behave the >same in xterm, gui or rxvt. The user can go around this binding [Print] >to whatever, but if there is not a reason, then maybe it worth doing. > >(define-key map "\e[29~" [menu]) in xterm.el too? > >I don't actually know about any keyboard with a print button... But I >suppose there should be some. If someone has it; please could you check >with xev and cat+xterm what it sends? > >Thanks in advance, >Ergus >