From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Hadrien Lacour Newsgroups: gmane.emacs.bugs Subject: bug#33513: 26.1; emacsclient forgetting keybinds set by tty-setup-hook Date: Mon, 26 Nov 2018 11:51:51 +0100 Message-ID: <20181126105151.pklkvmi4n3zzllj6@gentoo-zen2700x> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 X-Trace: blaine.gmane.org 1543245353 25024 195.159.176.226 (26 Nov 2018 15:15:53 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 26 Nov 2018 15:15:53 +0000 (UTC) User-Agent: NeoMutt/20180716 To: 33513@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Nov 26 16:15:49 2018 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gRIc1-0006O3-7Y for geb-bug-gnu-emacs@m.gmane.org; Mon, 26 Nov 2018 16:15:49 +0100 Original-Received: from localhost ([::1]:37215 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gRIe5-0000CS-1F for geb-bug-gnu-emacs@m.gmane.org; Mon, 26 Nov 2018 10:17:57 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:43628) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gRIdm-0008Hs-EL for bug-gnu-emacs@gnu.org; Mon, 26 Nov 2018 10:17:45 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gRIcF-00019d-IQ for bug-gnu-emacs@gnu.org; Mon, 26 Nov 2018 10:16:09 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:45718) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gRIcF-00017m-A4 for bug-gnu-emacs@gnu.org; Mon, 26 Nov 2018 10:16:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1gRIcE-0006Lt-7p for bug-gnu-emacs@gnu.org; Mon, 26 Nov 2018 10:16:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Hadrien Lacour Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 26 Nov 2018 15:16:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 33513 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.154324530924335 (code B ref -1); Mon, 26 Nov 2018 15:16:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 26 Nov 2018 15:15:09 +0000 Original-Received: from localhost ([127.0.0.1]:49974 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gRIbL-0006KN-WD for submit@debbugs.gnu.org; Mon, 26 Nov 2018 10:15:08 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:33848) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gREXG-0003U4-1Z for submit@debbugs.gnu.org; Mon, 26 Nov 2018 05:54:38 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gREX9-0002ve-Hc for submit@debbugs.gnu.org; Mon, 26 Nov 2018 05:54:32 -0500 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:57726) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gREX9-0002va-Eb for submit@debbugs.gnu.org; Mon, 26 Nov 2018 05:54:31 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:43431) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gREX8-0000dP-Ac for bug-gnu-emacs@gnu.org; Mon, 26 Nov 2018 05:54:31 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gREX2-0002qL-DC for bug-gnu-emacs@gnu.org; Mon, 26 Nov 2018 05:54:28 -0500 Original-Received: from mout01.posteo.de ([185.67.36.65]:37829) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gREX1-0002mL-Qj for bug-gnu-emacs@gnu.org; Mon, 26 Nov 2018 05:54:24 -0500 Original-Received: from submission (posteo.de [89.146.220.130]) by mout01.posteo.de (Postfix) with ESMTPS id 377E31601A3 for ; Mon, 26 Nov 2018 11:53:36 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1543229616; bh=8JFhZrmZtQwhYRYsFBkiFqH4u91V0qI+ETHJWORBkUY=; h=Date:From:To:Subject:From; b=A3p7kR2q/CaS4td30cdY0Qni4DqlPHuCVA0XcxnNPw6DhjuNhzWQW1O2ef3gx4l6d YhFKbgirvOq9JOCm9E5W7yR4QiISDoF7lzflLGBvDrtsems64PRjL2WTwAB+vzuaMl A6YAkfqzv/+vDEIZHhPZgvb0wUcYo1qc6ag3BzbZ+ZgeuRHT7W5ekuZw3GXnqII1Dr 0riaFqhcyB81+EU+x/p7JBNtrllc+iu9QCyBiG4mq7iiZ6ZK1z/fPtGau9cTLiXkIj 8coI12BxfYopDYwiYNYjDAcnvOcYNAXKuodoL4Q5+1zxaXyZeAdKc7vaiVquFatK78 qiGK3HSIS8zOg== Original-Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 433Nyg4SDKz6tmB for ; Mon, 26 Nov 2018 11:51:55 +0100 (CET) Content-Disposition: inline X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Mailman-Approved-At: Mon, 26 Nov 2018 10:15:06 -0500 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 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.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:152786 Archived-At: Hello, by using these two files: $ cat ~/.emacs (add-to-list 'load-path "~/.emacs.d/lisp/") $ cat -A ~/.emacs.d/lisp/term/st.el | sed 's#\$$##' (message "Registering st keybinds") (define-key input-decode-map "^[[1;5A" [C-up]) (define-key input-decode-map "^[[1;5B" [C-down]) (define-key input-decode-map "^[[1;5C" [C-right]) (define-key input-decode-map "^[[1;5D" [C-left]) (define-key input-decode-map "^[[1~" [home]) (define-key input-decode-map "^[[4~" [end]) I get the keybinds I want when using emacs -nw with st, but when using emacs --daemon and emacsclient, these work only the first time: $ emacs --daemon $ emacsclient -nw myfile # no problem, close with C-x C-c $ emacsclient -nw myfile # from here, tty frames don't remember the bindings In GNU Emacs 26.1 (build 1, x86_64-pc-linux-gnu, X toolkit) of 2018-11-10 built on gentoo-zen2700x System Description: Gentoo Base System release 2.6 Recent messages: Registering st keybinds When done with a buffer, type C-x # [2 times] M-[ 1 ; 5 b is undefined [3 times] previous-line: Beginning of buffer [2 times] Making completion list... [2 times] delete-backward-char: Text is read-only [2 times] user-error: End of history; no default available user-error: Beginning of history; no preceding item user-error: End of history; no default available funcall-interactively: End of buffer Configured using: 'configure --prefix=/usr --build=x86_64-pc-linux-gnu --host=x86_64-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --disable-silent-rules --docdir=/usr/share/doc/emacs-26.1-r3 --htmldir=/usr/share/doc/emacs-26.1-r3/html --libdir=/usr/lib64 --program-suffix=-emacs-26 --infodir=/usr/share/info/emacs-26 --localstatedir=/var --enable-locallisppath=/etc/emacs:/usr/share/emacs/site-lisp --without-compress-install --without-hesiod --without-pop --with-file-notification=inotify --enable-acl --without-dbus --without-modules --without-gameuser --without-gpm --without-kerberos --without-kerberos5 --without-lcms2 --without-xml2 --without-mailutils --without-selinux --with-gnutls --without-libsystemd --with-threads --without-wide-int --with-zlib --with-sound=no --with-x --without-ns --without-gconf --without-gsettings --without-toolkit-scroll-bars --without-gif --without-jpeg --without-png --without-rsvg --without-tiff --with-xpm --without-imagemagick --with-xft --without-cairo --without-libotf --without-m17n-flt --with-x-toolkit=lucid --without-xaw3d 'CFLAGS=-march=native -pipe -O2' CPPFLAGS= 'LDFLAGS=-Wl,-O1 -Wl,--as-needed'' Configured features: XPM NOTIFY ACL GNUTLS FREETYPE XFT ZLIB LUCID X11 THREADS Important settings: value of $LANG: en_US.utf8 locale-coding-system: utf-8-unix Major mode: Emacs-Lisp Minor modes in effect: tooltip-mode: t global-eldoc-mode: t eldoc-mode: t electric-indent-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t Load-path shadows: None found. Features: (shadow sort mail-extr emacsbug message rmc puny dired dired-loaddefs format-spec rfc822 mml mml-sec epa derived epg gnus-util rmail rmail-loaddefs mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils server time-date elec-pair finder-inf info tex-site package easymenu epg-config url-handlers url-parse auth-source cl-seq eieio eieio-core cl-macs eieio-loaddefs password-cache url-vars seq byte-opt gv bytecomp byte-compile cconv cl-loaddefs cl-lib site-gentoo mule-util tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type mwheel term/x-win x-win term/common-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list replace newcomment text-mode elisp-mode lisp-mode prog-mode register page menu-bar rfn-eshadow isearch timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core term/tty-colors frame cl-generic cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese composite charscript charprop case-table epa-hook jka-cmpr-hook help simple abbrev obarray minibuffer cl-preloaded nadvice loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote inotify dynamic-setting font-render-setting x-toolkit x multi-tty make-network-process emacs) Memory information: ((conses 16 114847 11926) (symbols 48 22101 1) (miscs 40 52 154) (strings 32 34720 1085) (string-bytes 1 931459) (vectors 16 15307) (vector-slots 8 487591 6450) (floats 8 58 432) (intervals 56 445 56) (buffers 992 14))