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.bugs Subject: bug#33513: 26.1; emacsclient forgetting keybinds set by tty-setup-hook Date: Sat, 28 Nov 2020 11:23:11 +0200 Message-ID: <83sg8tn8cg.fsf@gnu.org> References: <20181126105151.pklkvmi4n3zzllj6@gentoo-zen2700x> <87im9stii5.fsf@gnus.org> <20201126153249.3kxdhmwrx5vy7vaq@gentoo-zen2700x> <87k0u7jiny.fsf@gnus.org> <20201128091258.v5f2nnj7ntba4cqu@gentoo-zen2700x> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="10257"; mail-complaints-to="usenet@ciao.gmane.io" Cc: larsi@gnus.org, 33513@debbugs.gnu.org To: Hadrien Lacour Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Nov 28 10:24:11 2020 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1kiwSg-0002a7-Hn for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 28 Nov 2020 10:24:10 +0100 Original-Received: from localhost ([::1]:47028 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kiwSe-0008FA-TC for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 28 Nov 2020 04:24:08 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:54174) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kiwSY-0008Ef-OM for bug-gnu-emacs@gnu.org; Sat, 28 Nov 2020 04:24:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:35404) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kiwSY-0007rt-D4 for bug-gnu-emacs@gnu.org; Sat, 28 Nov 2020 04:24:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kiwSY-0005Ma-99 for bug-gnu-emacs@gnu.org; Sat, 28 Nov 2020 04:24:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 28 Nov 2020 09:24:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 33513 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: moreinfo Original-Received: via spool by 33513-submit@debbugs.gnu.org id=B33513.160655541320579 (code B ref 33513); Sat, 28 Nov 2020 09:24:02 +0000 Original-Received: (at 33513) by debbugs.gnu.org; 28 Nov 2020 09:23:33 +0000 Original-Received: from localhost ([127.0.0.1]:46950 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kiwS5-0005Lr-6D for submit@debbugs.gnu.org; Sat, 28 Nov 2020 04:23:33 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:35922) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kiwS3-0005Lb-8i for 33513@debbugs.gnu.org; Sat, 28 Nov 2020 04:23:31 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:42446) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kiwRx-0007fu-Bd; Sat, 28 Nov 2020 04:23:25 -0500 Original-Received: from [176.228.60.248] (port=3581 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1kiwRw-0007YC-Qd; Sat, 28 Nov 2020 04:23:25 -0500 In-Reply-To: <20201128091258.v5f2nnj7ntba4cqu@gentoo-zen2700x> (message from Hadrien Lacour on Sat, 28 Nov 2020 10:12:58 +0100) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:194485 Archived-At: > Date: Sat, 28 Nov 2020 10:12:58 +0100 > From: Hadrien Lacour > Cc: 33513@debbugs.gnu.org > > > >> What key stroke is "^[[1;5A" (etc) representing? > > > > [...] > > > > > as the line says, "Ctrl + Up arrow". I think I stopped used > > > emacsclient because of this, actually. > > > > When I use emacsclient -nw (Debian bullseye), `C-up' works without > > altering input-decode-map, so I'm wondering why your terminal is sending > > key sequences making it necessary to alter input-decode-map. > > Most probably because Emacs has some defaults for xterm based terminals, which > st isn't. And Emacs needs those defaults because "C-up" isn't described by > terminfo. So maybe the way forward is to update lisp/term/st.el with these sequences? Currently, we behave as if st is the same as xterm. > Anyway, that's not really the problem, the bindings shouldn't > disappear. Mind you, I haven't try to reproduce it with the current version, > I'll probably get to it. Please do, perhaps the latest code already fixes this problem. Thanks.