From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.comp.lib.ncurses.bugs,gmane.emacs.devel Subject: Re: Emacs difficulties in linux console with ncurses-6.3 caused by kcbt=\E^I. Date: Sat, 07 May 2022 13:45:44 +0300 Message-ID: <83y1zdy61z.fsf@gnu.org> References: <20220506000102.GA10144@prl-debianold-64.jexium-island.net> <83v8uizd6r.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="3639"; mail-complaints-to="usenet@ciao.gmane.io" Cc: dickey@his.com, bug-ncurses@gnu.org, emacs-devel@gnu.org To: Alan Mackenzie Original-X-From: bug-ncurses-bounces+gnu-bug-ncurses=m.gmane-mx.org@gnu.org Sat May 07 12:47:07 2022 Return-path: Envelope-to: gnu-bug-ncurses@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 1nnHxq-0000iH-QP for gnu-bug-ncurses@m.gmane-mx.org; Sat, 07 May 2022 12:47:06 +0200 Original-Received: from localhost ([::1]:58068 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nnHxp-0003kk-BB for gnu-bug-ncurses@m.gmane-mx.org; Sat, 07 May 2022 06:47:05 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:52920) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nnHwk-0003jo-Eo; Sat, 07 May 2022 06:46:02 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:36600) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nnHwi-0003vL-4e; Sat, 07 May 2022 06:45:57 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=AtNmbFPIHqxOYV0Q8gf6aBQvsYT+WRK82sAMgBHuEdE=; b=mdX0Q32CHjul xyUv0N8SeOWc2c3UmdYuoGwz5syhCbjKzuw+vycvEedtIeJafiuQ6QTMs98axqukfjRFQxF3tboSc gRU3y6fhG8VkkNapSRCfd3VKQ0W7iGhJ1P6M/sjhf/w2NNhBENWek3xedLeorgQFGgN8lFuWPXwWK iMaqbtc8yEvTNzPmqWgVfjXsNZArGNRhujqIhgME1ZaD6jbj16dpSGAcmEedqf6c68WE/68GvIwZC Pm23rhfiID4eLZftA5FZwd2Bjb7j3rpzYemELcdLY6vFae9AX3Zh69tCbKEUq/oj0bbjrKFSdUMIN l42S6peFH0OB+fiapDuXvg==; Original-Received: from [87.69.77.57] (port=1828 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nnHwg-0008H2-Ld; Sat, 07 May 2022 06:45:55 -0400 In-Reply-To: (message from Alan Mackenzie on Sat, 7 May 2022 10:41:46 +0000) X-BeenThere: bug-ncurses@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Bug reports for ncurses, the GNU implementation of curses" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-ncurses-bounces+gnu-bug-ncurses=m.gmane-mx.org@gnu.org Original-Sender: "Bug-ncurses" Xref: news.gmane.io gmane.comp.lib.ncurses.bugs:8547 gmane.emacs.devel:289383 Archived-At: > Date: Sat, 7 May 2022 10:41:46 +0000 > Cc: dickey@his.com, bug-ncurses@gnu.org, emacs-devel@gnu.org > From: Alan Mackenzie > > > I'm not against that, I'm against doing that in term.c for all the > > text-mode terminals. > > I misunderstood you, there, sorry. I'd misunderstood the code, and I > thought (without thinking) that the translation functionality for > terminfo settings would be buried deep in the C code, somewhere. Some of it is, actually. But users can countermand at least some of that code in their customizations. > > You could, for example, modify input-decode-map in lisp/term/linux.el, > > and that would be OK with me, if there's no better solution for this. > > That's the bit I missed - that the pertinent translation into 'backtab > is done by the input-decode-map. So, as you say, all that is needed is > to remove the binding from that keymap. I'll take back what > I said about the problem being difficult to fix. > > Maybe we can write an entry in PROBLEMS and leave it to the user to fix > in her .emacs. Or maybe we can put code in lisp/term/linux.el > ourselves. I'm okay with both alternatives, since I have no opinion on what is more important to users of Emacs on the Linux console. > I don't know how typical I am of Linux console users, but I have my > keymap set up to send a different code for - namely > "\033[4}\011". Perhaps that PROBLEMS entry could suggest that as well, so that users could have the cake and eat it, too. Thanks.