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: xterm [menu] key definition Date: Thu, 19 Aug 2021 04:47:28 +0200 Message-ID: <20210819024728.kgnf6jmpakqdto4p@Ergus> References: <20210819024728.kgnf6jmpakqdto4p.ref@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="4675"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Stephen Leake , emacs-devel To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu Aug 19 04:48:35 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 1mGY6c-00010b-Ou for ged-emacs-devel@m.gmane-mx.org; Thu, 19 Aug 2021 04:48:35 +0200 Original-Received: from localhost ([::1]:51370 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mGY6b-0006Lx-4l for ged-emacs-devel@m.gmane-mx.org; Wed, 18 Aug 2021 22:48:33 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:51978) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mGY64-0005gI-4F for emacs-devel@gnu.org; Wed, 18 Aug 2021 22:48:00 -0400 Original-Received: from sonic317-27.consmr.mail.bf2.yahoo.com ([74.6.129.82]:34807) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mGY62-0000k3-Ca for emacs-devel@gnu.org; Wed, 18 Aug 2021 22:47:59 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aol.com; s=a2048; t=1629341274; bh=g1QBvIDSgmCDw4nGQj3Fcfzq1VQxFYxmzvXUzaDaRgQ=; h=Date:From:To:Cc:Subject:References:From:Subject:Reply-To; b=r7dlh1eleaGHe1bVdCm4ldb5dmox4B/S9vJ+pZ2siTgcqOjD3YLm6lcfDKspzVzZ6+dx3AxAwSiwLs6TRDNncbnqTquJ2XLOtoCDJU7ya6ZsyIeLhbp+zv2G8iJcMUuT5F1C+aELyxDSYNjVEvPMW24YTVjmy0eJUGQSHO7vOjIka2BG44d1xex5Lgp+OtdJVmlogl60CXbH7Yr03XfdeByvCRNq3axYAAQUkY+XUOJqF2veuB3dWntp7BHoNOerbswnFV4pvhYOPvuigBOC3e5/ZImxJ062nzfI+eejJDtPS9+VewNfMRiS7TUhdiysHLoSCOu5QQDn5q5rvLdEBg== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1629341274; bh=asPwIFRAJ6qJ8cxgDAEsBCDRDsmRgilyWD6RjekatBv=; h=X-Sonic-MF:Date:From:To:Subject:From:Subject; b=AbhaFWVKgeP+nr6AV94xc21TWpg38t8J3ckEEKc8LmG7xl13te6MrMpg58ftqaZgHSuv9fDAwBweAwvrxLjkIcbFuUVsIrqPAGtiTCWsivNl93gJD+eH4J5X3iPnwWAYujOt8d8fByZ2NuM1zGUEVPu4QjdWxOhBAzyT4rtfxrSLDtOrCqhuMfUo8gzr/v3OIE5rpspbUotnVXuGCVOc8QEezPv2NMXGzyOcjj494LqrEC3d0rkwomq8Fy5V/lsP7R+4x0uwsfPu6UOexJO7qzubo+OFIg7ijrrikXl3Oq5Wsg2Xlrc53zoZq0ipQeeA2D9I6iISa5uQqwj1eULqBA== X-YMail-OSG: jDHkrNYVM1meDb1H8Pc58BSMeQd3iSOJUtGPm4cMIf_eMGaNj.ERMmf48d9d_Ed UtuVfnP_lDgW24Sr9HGp3Xe.kdU.WLsjker0YliQYJGTQ_gTUIZJ0PV5T4CWnVUDY2_3j04sCdjN b50g11Ns6oKHTKazVStfpqJwMAiFnHRI2DcR3OZWQCKMSYrO6hux5rw_BmHWKG4ufw0i6SZ3QWQo YWHl4Zdu4IXmP0Bd5Z7CwwQLm7xi5UtpM1xLvZdqqifQMIM_w75vZ86c2sBB2e0BWfFn7qH5ru2a JPX6.Xm6BkdYMYwO2RRVJV_YQWxZCMDDStgJ.Wr4OYr3GB6xuqS8uqitpO0b6.NTdZbKiIDGPUwh UOVfwnYKeptCh7ZL66KHO5e3PxSjmvWP3uThFZQIDGh5PiGyH3f..BlOfucJHmMwZuVN9WX4_Yvm jTO36l6phKj6L5eAaqnd3pFuJiDkrtsBH3qPBHhAdY.FWwFdyF9wZgE0WWWKF9_cS7Re0Qk_VVbp oaaZlQZGPzDBp4nglga4R9wqO96hX66hJNUmy.41X29fdIfM_Ed.jSI1uM53zGjcfUDHQFjGymCM R9X0KEr7FqZGCl0KhuKg4Axeep5J8rVYpaaPhv4SkscgewexCdXZd7lRsNNRZQhK59q1v6b3_8No 7iaDAabAbJKkzwr41nrjbGpJGNm4D7vGN.0wWB3ChASz8rZsUTMovEdrKOwt85teVyv67mfDd5ag LkIk5s05Q9uNeeNX7Q.9CXYqyflogQT2gxX_fopNtImlVYsqn0gNS_fVpxs8jwVn4sLbEnjrWZS9 xrfo46E7QjOq5ZAxXUc7qmcO26qBLEjXrgturZgC3K X-Sonic-MF: Original-Received: from sonic.gate.mail.ne1.yahoo.com by sonic317.consmr.mail.bf2.yahoo.com with HTTP; Thu, 19 Aug 2021 02:47:54 +0000 Original-Received: by kubenode531.mail-prod1.omega.ir2.yahoo.com (VZM Hermes SMTP Server) with ESMTPA ID acb0a14fc0d38f7ae4c95414de209615; Thu, 19 Aug 2021 02:47:51 +0000 (UTC) Content-Disposition: inline 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.129.82; envelope-from=spacibba@aol.com; helo=sonic317-27.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:272633 Archived-At: 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