From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: xterm [menu] key definition Date: Tue, 24 Aug 2021 22:53:55 -0400 Message-ID: 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 Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="1655"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: Juri Linkov , emacs-devel To: Ergus Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed Aug 25 04:54:47 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 1mIj3v-0000Dx-7W for ged-emacs-devel@m.gmane-mx.org; Wed, 25 Aug 2021 04:54:47 +0200 Original-Received: from localhost ([::1]:33820 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mIj3t-0004mo-GD for ged-emacs-devel@m.gmane-mx.org; Tue, 24 Aug 2021 22:54:45 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:43358) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mIj3P-00044C-0J for emacs-devel@gnu.org; Tue, 24 Aug 2021 22:54:15 -0400 Original-Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:55794) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mIj3K-0000jz-Lk for emacs-devel@gnu.org; Tue, 24 Aug 2021 22:54:13 -0400 Original-Received: from pmg2.iro.umontreal.ca (localhost.localdomain [127.0.0.1]) by pmg2.iro.umontreal.ca (Proxmox) with ESMTP id 1BD12808D9; Tue, 24 Aug 2021 22:54:08 -0400 (EDT) Original-Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg2.iro.umontreal.ca (Proxmox) with ESMTP id A38688064E; Tue, 24 Aug 2021 22:54:06 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1629860046; bh=hYBs9nsozTK+fGmcNfi2Od7IzB6FN4h7V4RWO1DFyBY=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=TGHJvZEO53vwcDFhOVOyDi4mjqtInF1Og6QgDWTzEyQa4nPJaqQfDKIr1ld+g+7dl q84frJTieQwNZTpVZT9y/uFbkp9kBxycxomAFln8a2NrRyDCSaWkBFYOeNAUXmkV2x jPZpc+jnurygJbIWHOG+b5304bAUUcmKbpwolr0c6sc2uhR/oHoDj7iybOcSdfwjFA sddIWZkmaCXxuCo+RpBrE/yUC8HWjeS2yJXtyBuurp2aWpKlvX5apeIwsV9988FayS rQc+ex7RSoALmqm1GM2BVdNNCrgX21V5emb0se/7Sm4sGDlPSTdMmrwwJjSbGhMQG6 LSSUgv/pMrX1Q== Original-Received: from alfajor (unknown [104.247.244.135]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id 67565120524; Tue, 24 Aug 2021 22:54:06 -0400 (EDT) In-Reply-To: <20210824232033.ksesfe3ewflbsv63@Ergus> (Ergus's message of "Wed, 25 Aug 2021 01:20:33 +0200") Received-SPF: pass client-ip=132.204.25.50; envelope-from=monnier@iro.umontreal.ca; helo=mailscanner.iro.umontreal.ca X-Spam_score_int: -42 X-Spam_score: -4.3 X-Spam_bar: ---- X-Spam_report: (-4.3 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_MED=-2.3, 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:272938 Archived-At: > 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. > 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}. Do you have a "menu" key which emits the `Menu` X11 event and for which your terminal emits `\E[29~`? If so, which terminal is that (details like the version may be relevant and maybe the OS or environment)? Stefan