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: emacs-28 1d012e0a62: Linux console: don't translate ESC TAB to `backtab' in input-decode-map. Date: Sun, 08 May 2022 08:40:12 -0400 Message-ID: References: <165201012408.6396.8067711100736391186@vcs2.savannah.gnu.org> <20220508114205.E6A2EC05822@vcs2.savannah.gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="25929"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) Cc: emacs-devel@gnu.org To: Alan Mackenzie Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sun May 08 14:41:27 2022 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 1nngE2-0006Y2-Jy for ged-emacs-devel@m.gmane-mx.org; Sun, 08 May 2022 14:41:26 +0200 Original-Received: from localhost ([::1]:34916 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nngE1-0003fV-Al for ged-emacs-devel@m.gmane-mx.org; Sun, 08 May 2022 08:41:25 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:46198) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nngD3-0002yi-7s for emacs-devel@gnu.org; Sun, 08 May 2022 08:40:25 -0400 Original-Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:53084) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nngCz-00043V-VM for emacs-devel@gnu.org; Sun, 08 May 2022 08:40:23 -0400 Original-Received: from pmg3.iro.umontreal.ca (localhost [127.0.0.1]) by pmg3.iro.umontreal.ca (Proxmox) with ESMTP id 56550440689; Sun, 8 May 2022 08:40:20 -0400 (EDT) Original-Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg3.iro.umontreal.ca (Proxmox) with ESMTP id 7B0814405E4; Sun, 8 May 2022 08:40:14 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1652013614; bh=h5Aq9/Ap0ol+k77tX89mGx3Qy4uXB4HvA08qMG5YSd8=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=bAWPn4i4v3+8fxWA/afT1Nl97oDvvGz71pWu3ZpO7eWo90Ntw71rvTBDMRSKo4Taw rKlsQnFe9gfwccXN5raNisf0Z0iNQcszWbEpXBy1WKasrAX4enSui2jo0QreRhlgkO O2G4zY2BIsf/p2JuZvIKvEnNrEBwRMVEOtG6zWSIyO/02Sded1z0kavHri9zYpxL91 E8BwgIZtcDW/uRiLjDERlDVz5Ou1jW1tNbNZX8hZvJmxq6RewmP3LwTECLiedQ39HB WbT0xMMY3P9zjY2UOwhOSH9iFmaHLiEion1vqQ/DE+qOq4lmOJamlJwWvVbjbuiub1 BINYREOw+yB6A== Original-Received: from pastel (unknown [45.72.221.51]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id 44B5B12036E; Sun, 8 May 2022 08:40:14 -0400 (EDT) In-Reply-To: <20220508114205.E6A2EC05822@vcs2.savannah.gnu.org> (Alan Mackenzie's message of "Sun, 8 May 2022 07:42:04 -0400 (EDT)") 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, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 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:289478 Archived-At: > +keycode 15 = Tab > + alt keycode 15 = Meta_Tab > + shift keycode 15 = F219 > +string F219 = "\033[4}\011" # Shift+ > + > +After possibly saving this file under a different name, compress it > +again using gzip. Amend /etc/conf.d/keyamps, etc., if needed. > +Further details can be found in the man page for loadkeys. > + > +Then add the following line near the start of your site-start.el or > +.emacs or init.el file: > + > +(define-key input-decode-map "\e[4}\t" 'backtab) Even better would be to adjust the ncurses database ;-) Does ncurses support such local customizations? [ The last time I did something like that was *many* years ago, and I had to make my own copy of the relevant terminfo file, rather than being able to reuse the existing terminfo file for the rest of the definition. ] Stefan