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.emacs.devel,gmane.comp.lib.ncurses.bugs Subject: Re: Emacs difficulties in linux console with ncurses-6.3 caused by kcbt=\E^I. Date: Fri, 06 May 2022 22:14:04 +0300 Message-ID: <83v8uizd6r.fsf@gnu.org> References: <20220506000102.GA10144@prl-debianold-64.jexium-island.net> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="20996"; 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: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri May 06 21:14:56 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 1nn3Pj-0005F0-RA for ged-emacs-devel@m.gmane-mx.org; Fri, 06 May 2022 21:14:56 +0200 Original-Received: from localhost ([::1]:53390 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nn3Pi-00063i-Pr for ged-emacs-devel@m.gmane-mx.org; Fri, 06 May 2022 15:14:54 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:50742) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nn3P8-0005JU-5c; Fri, 06 May 2022 15:14:18 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:52308) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nn3P6-0007RU-U2; Fri, 06 May 2022 15:14:16 -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=fmfRBAzxwx23pbjw9ye0lIRJhwfhPVRNb6FSgTbi3xY=; b=XbJpAClGx9YR JsgPhhqPlI3a1ZqDRfG70r2fPH8pYVyjNze3wwz5rjQvPhVGdKBF8J4eyDO9rlrSK3fWMLZrkcBZa 6XUo3kgxcfXseZd3H9ElJFw6kEqLAT/99aoJb+9oPTBnwBHUwABZpHLm2b/UOiBeBMu/nFdnMLH3e mt2+B4kw1l9slJnnyL1nnpCGxFuv5fbjrW+C9AZGK1I3WvGeYtSPf8B0moeg6lwKdlwZWdiBhJQz+ bAg5fSXtOS8HnzTvq3FQxTFBnlCKd3oamomFtxPdx4U7nXkT4CmLYlJI1ja4IGY17SfLudAa1kpXH 4fZ/SUhfanOR/DbTBRpypw==; Original-Received: from [87.69.77.57] (port=3804 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 1nn3P6-00074O-Cl; Fri, 06 May 2022 15:14:16 -0400 In-Reply-To: (message from Alan Mackenzie on Fri, 6 May 2022 18:49:39 +0000) 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:289335 gmane.comp.lib.ncurses.bugs:8545 Archived-At: > Date: Fri, 6 May 2022 18:49:39 +0000 > Cc: bug-ncurses@gnu.org, emacs-devel@gnu.org > From: Alan Mackenzie > > > > Is there perhaps some strategy we could use in Emacs (C code) which would > > > work around this problem with using ugly ad-hoc code? > > > I suppose you could tell Emacs to ignore kcbt (termcap kB) for Linux. > > Sorry, I mistyped there. I meant to write "withOUT using ugly ... code". > Eli Zaretskii, the maintainer of Emacs, is against putting in special > handling for the linux console's kcbt. I'm not against that, I'm against doing that in term.c for all the text-mode terminals. 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. Doing that will cause users of Emacs on the Linux console to lose Backtab and gain M-TAB instead. Personally, I'm not sure which one is more important, but then I don't use the Linux console.