From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Julien Palard Newsgroups: gmane.emacs.bugs Subject: bug#23450: 24.5; Lossing DECCKM application sequences on "fg" Date: Wed, 4 May 2016 18:18:14 +0200 Message-ID: <572A20C6.40008@palard.fr> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1462380351 21749 80.91.229.3 (4 May 2016 16:45:51 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 4 May 2016 16:45:51 +0000 (UTC) To: 23450@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed May 04 18:45:39 2016 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1axzve-00023t-Hg for geb-bug-gnu-emacs@m.gmane.org; Wed, 04 May 2016 18:45:38 +0200 Original-Received: from localhost ([::1]:49021 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1axzva-0002MT-S5 for geb-bug-gnu-emacs@m.gmane.org; Wed, 04 May 2016 12:45:34 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:42913) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1axzvJ-0001pn-Po for bug-gnu-emacs@gnu.org; Wed, 04 May 2016 12:45:24 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1axzv7-00081m-L2 for bug-gnu-emacs@gnu.org; Wed, 04 May 2016 12:45:12 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:53948) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1axzv7-00081E-HI for bug-gnu-emacs@gnu.org; Wed, 04 May 2016 12:45:05 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1axzv4-0001SR-5R for bug-gnu-emacs@gnu.org; Wed, 04 May 2016 12:45:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Julien Palard Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 04 May 2016 16:45:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 23450 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.14623802655533 (code B ref -1); Wed, 04 May 2016 16:45:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 4 May 2016 16:44:25 +0000 Original-Received: from localhost ([127.0.0.1]:38052 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1axzuS-0001RA-KM for submit@debbugs.gnu.org; Wed, 04 May 2016 12:44:25 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:43600) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1axzWI-0000nh-0Z for submit@debbugs.gnu.org; Wed, 04 May 2016 12:19:26 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1axzVt-00009O-AL for submit@debbugs.gnu.org; Wed, 04 May 2016 12:19:17 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:39597) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1axzVt-00008W-7M for submit@debbugs.gnu.org; Wed, 04 May 2016 12:19:01 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:34451) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1axzVh-0000bB-9v for bug-gnu-emacs@gnu.org; Wed, 04 May 2016 12:18:55 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1axzVS-0008Tt-H3 for bug-gnu-emacs@gnu.org; Wed, 04 May 2016 12:18:41 -0400 Original-Received: from julien.palard.fr ([62.210.178.84]:41515 helo=mandark.fr) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1axzVS-0008R4-97 for bug-gnu-emacs@gnu.org; Wed, 04 May 2016 12:18:34 -0400 Original-Received: from mandark.fr (localhost [127.0.0.1]) by filter.mynetwork.local (Postfix) with ESMTP id 358BA29C3018 for ; Wed, 4 May 2016 18:18:17 +0200 (CEST) Original-Received: from [10.1.189.198] (unknown [163.5.68.3]) by mandark.fr (Postfix) with ESMTPSA id DE3B529C1253 for ; Wed, 4 May 2016 18:18:14 +0200 (CEST) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Icedove/38.6.0 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Mailman-Approved-At: Wed, 04 May 2016 12:44:24 -0400 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:117772 Archived-At: Hi, We noticed a bug, we're reproducing it like twice a week but we're still unable to reproduce it explicitly, sorry for that. Bug is: After sending emacs to the background with `C-z` and getting it back with `fg`, sometimes, our terminal misses the [DECCKM](http://www.vt100.net/docs/vt510-rm/DECCKM.html) flag. We can easily fix it via `(send-string-to-terminal "\e[?1h")`, so we're "sure" that this flag the "missing one", but we have no proof emacs is faulty here. It look like we're not alone: http://stackoverflow.com/questions/4548106/screen-somehow-unmaps-my-arrow-keys-in-emacs-after-a-z/37032152 Here, we reproduced it with: - urxvt, putty, gnome term - emacs 24.5.1, emacs 24.4.1 - GNU screen 4.02.01, 4.03.01, tmux 2.2 - Debian GNU/Linux 8.4 (jessie) Configured using: `configure --build x86_64-linux-gnu --prefix=/usr --sharedstatedir=/var/lib --libexecdir=/usr/lib --localstatedir=/var/lib --infodir=/usr/share/info --mandir=/usr/share/man --with-pop=yes --enable-locallisppath=/etc/emacs24:/etc/emacs:/usr/local/share/emacs/24.5/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/24.5/site-lisp:/usr/share/emacs/site-lisp --build x86_64-linux-gnu --prefix=/usr --sharedstatedir=/var/lib --libexecdir=/usr/lib --localstatedir=/var/lib --infodir=/usr/share/info --mandir=/usr/share/man --with-pop=yes --enable-locallisppath=/etc/emacs24:/etc/emacs:/usr/local/share/emacs/24.5/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/24.5/site-lisp:/usr/share/emacs/site-lisp --with-x=no --without-gconf --without-gsettings 'CFLAGS=-g -O2 -fstack-protector-strong -Wformat -Werror=format-security -Wall' CPPFLAGS=-D_FORTIFY_SOURCE=2 LDFLAGS=-Wl,-z,relro' Important settings: value of $LC_ALL: en_US.utf8 value of $LANG: en_US.UTF-8 locale-coding-system: utf-8-unix Major mode: Lisp Interaction Minor modes in effect: global-company-mode: t company-mode: t global-flycheck-mode: t flycheck-mode: t icomplete-mode: t show-paren-mode: t tooltip-mode: t electric-indent-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 column-number-mode: t line-number-mode: t transient-mark-mode: t Recent messages: Quit M-[ c is undefined [2 times] M-[ d is undefined M-[ c is undefined Quit call-interactively: Symbol's value as variable is void: Warning M-[ d is undefined M-[ c is undefined [2 times] M-[ d is undefined M-[ c is undefined Load-path shadows: /usr/share/emacs/24.5/site-lisp/debian-startup hides /usr/share/emacs/site-lisp/debian-startup /usr/share/emacs24/site-lisp/dictionaries-common/flyspell hides /usr/share/emacs/24.5/lisp/textmodes/flyspell /usr/share/emacs/site-lisp/rst hides /usr/share/emacs/24.5/lisp/textmodes/rst /usr/share/emacs24/site-lisp/dictionaries-common/ispell hides /usr/share/emacs/24.5/lisp/textmodes/ispell Features: (shadow sort gnus-util mail-extr emacsbug message format-spec rfc822 mml mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util help-fns mail-prsvr mail-utils windmove mule-util xterm warnings company-files company-oddmuse company-keywords company-gtags company-dabbrev-code company-dabbrev company-capf company-cmake company-ropemacs company-xcode company-clang company-semantic company-eclim company-template company-css company-nxml company-bbdb company-jedi jedi-core python-environment epc ctable concurrent deferred company-etags etags ring company solarized-theme solarized-definitions flycheck regexp-opt find-func help-mode rx subr-x seq dash icomplete info tool-bar easymenu cl-macs package epg-config time-date paren footnote edmacro kmacro cl gv cl-loaddefs cl-lib tooltip electric uniquify ediff-hook vc-hooks lisp-float-type tabulated-list newcomment lisp-mode prog-mode register page menu-bar rfn-eshadow timer select mouse jit-lock font-lock syntax facemenu font-core frame cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer 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 make-network-process dbusbind gfilenotify multi-tty emacs) Memory information: ((conses 16 170938 7052) (symbols 48 24321 1) (miscs 40 47 144) (strings 32 34351 4678) (string-bytes 1 910734) (vectors 16 15367) (vector-slots 8 408448 2523) (floats 8 86 337) (intervals 56 250 123) (buffers 960 12) (heap 1024 23206 943)) -- Julien Palard http://mdk.fr