From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Vincent Lefevre Newsgroups: gmane.emacs.bugs Subject: bug#10959: 23.3; emacs -nw doesn't always restore the terminal screen Date: Tue, 6 Mar 2012 16:01:04 +0100 Message-ID: <20120306150104.GC3281@xvii.vinc17.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1331046176 27146 80.91.229.3 (6 Mar 2012 15:02:56 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 6 Mar 2012 15:02:56 +0000 (UTC) To: 10959@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Mar 06 16:02:53 2012 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 1S4vuf-0007XE-Kb for geb-bug-gnu-emacs@m.gmane.org; Tue, 06 Mar 2012 16:02:53 +0100 Original-Received: from localhost ([::1]:40287 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S4vuf-0001aV-1o for geb-bug-gnu-emacs@m.gmane.org; Tue, 06 Mar 2012 10:02:53 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:35019) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S4vuX-0001Zt-IX for bug-gnu-emacs@gnu.org; Tue, 06 Mar 2012 10:02:51 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1S4vuR-00041z-2c for bug-gnu-emacs@gnu.org; Tue, 06 Mar 2012 10:02:45 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:57406) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S4vuQ-00041n-VQ for bug-gnu-emacs@gnu.org; Tue, 06 Mar 2012 10:02:38 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1S4vuo-00086C-48 for bug-gnu-emacs@gnu.org; Tue, 06 Mar 2012 10:03:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Vincent Lefevre Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 06 Mar 2012 15:03:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 10959 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.133104617831121 (code B ref -1); Tue, 06 Mar 2012 15:03:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 6 Mar 2012 15:02:58 +0000 Original-Received: from localhost ([127.0.0.1]:36005 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1S4vuk-00085i-43 for submit@debbugs.gnu.org; Tue, 06 Mar 2012 10:02:58 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:52832) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1S4vuX-00085H-5K for submit@debbugs.gnu.org; Tue, 06 Mar 2012 10:02:47 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1S4vtC-0003hC-Tg for submit@debbugs.gnu.org; Tue, 06 Mar 2012 10:01:51 -0500 Original-Received: from lists.gnu.org ([208.118.235.17]:35535) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S4vtC-0003h8-QO for submit@debbugs.gnu.org; Tue, 06 Mar 2012 10:01:22 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:34264) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S4vt7-0001Mi-GS for bug-gnu-emacs@gnu.org; Tue, 06 Mar 2012 10:01:22 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1S4vsz-0003fX-24 for bug-gnu-emacs@gnu.org; Tue, 06 Mar 2012 10:01:16 -0500 Original-Received: from vinc17.pck.nerim.net ([213.41.242.187]:52497 helo=smtp-xvii.vinc17.net) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S4vsy-0003fN-GS for bug-gnu-emacs@gnu.org; Tue, 06 Mar 2012 10:01:08 -0500 Original-Received: by xvii.vinc17.org (Postfix, from userid 1000) id 972E138C14A; Tue, 6 Mar 2012 16:01:04 +0100 (CET) Content-Disposition: inline X-Mailer-Info: http://www.vinc17.net/mutt/ User-Agent: Mutt/1.5.21-6201-vl-r48020 (2011-12-20) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 140.186.70.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-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:57533 Archived-At: This bug report will be sent to the Free Software Foundation, not to your local site managers! Please write in English if possible, because the Emacs maintainers usually do not have translators to read other languages for them. Your report will be posted to the bug-gnu-emacs@gnu.org mailing list and the gnu.emacs.bug news group, and at http://debbugs.gnu.org. Please describe exactly what actions triggered the bug and the precise symptoms of the bug. If you can, give a recipe starting from `emacs -Q': When run in a terminal (at least in xterm, aterm and gnome-terminal), emacs doesn't always restore the terminal screen (it remains in the alternate screen). This can be reproduced, but not always, with: for i in `seq 1 200` do emacs -Q -nw --eval '(save-buffers-kill-terminal)' done One sees that the screen isn't restored as expected. You can increase the number of iterations to have a better chance to reproduce the bug. I couldn't reproduce this bug in rxvt-unicode. If Emacs crashed, and you have the Emacs process in the gdb debugger, please include the output from the following gdb commands: `bt full' and `xbacktrace'. For information about debugging Emacs, please read the file /usr/local/emacs-23.3b/share/emacs/23.3/etc/DEBUG. In GNU Emacs 23.3.1 (x86_64-unknown-linux-gnu, GTK+ Version 2.24.8) of 2011-12-15 on xvii configured using `configure '--prefix=/usr/local/emacs-23.3b' '--enable-asserts' '--with-crt-dir=/usr/lib/x86_64-linux-gnu'' Important settings: value of $LC_ALL: nil value of $LC_COLLATE: POSIX value of $LC_CTYPE: en_US.UTF-8 value of $LC_MESSAGES: nil value of $LC_MONETARY: nil value of $LC_NUMERIC: nil value of $LC_TIME: en_DK value of $LANG: POSIX value of $XMODIFIERS: nil locale-coding-system: utf-8-unix default enable-multibyte-characters: t Major mode: Lisp Interaction Minor modes in effect: display-time-mode: t show-paren-mode: t tooltip-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-encryption-mode: t auto-compression-mode: t column-number-mode: t line-number-mode: t transient-mark-mode: t Recent input: ESC [ > 0 ; 2 7 6 ; 0 c ESC ] 1 1 ; r g b : 0 0 0 0 / 0 0 0 0 / 0 0 0 0 ESC \ C-h C-p C-s a l t e r n a C-s C-r C-r C-s C-s C-s C-s ESC O H C-s C-s C-s C-s C-s C-s C-s C-s C-s C-s C-s C-s C-s ESC O H C-s t e r m i n a l C-s C-s C-s C-s C-s C-s C-s C-s C-s C-s C-s C-s C-s C-s C-s C-s C-s C-s C-s C-s C-s C-s C-s C-s C-s C-s C-s C-s C-s C-s C-s C-s C-s C-s C-s C-s C-s C-s C-s C-s C-s C-s C-s C-s C-s C-s C-s C-s C-s C-s C-s C-s C-s C-s C-s C-s C-s C-s C-s C-s C-s C-s C-s C-s C-s C-s C-s C-s C-s C-s C-s ESC O H C-s s s h C-s C-s C-s C-s C-s C-s C-s C-s ESC O B ESC [ 6 ~ ESC [ 6 ~ ESC [ 6 ~ ESC [ 6 ~ q ESC x r e p o TAB r t TAB RET Recent messages: Note: file is write protected View mode: type C-h for help, h for commands, q to quit. Mark saved where search started Mark set Mark saved where search started Mark set Mark saved where search started Mark set Mark saved where search started Making completion list... Load-path shadows: None found. Features: (shadow sort mail-extr message sendmail ecomplete rfc822 mml mml-sec password-cache mm-decode mm-bodies mm-encode mailcap mail-parse rfc2231 rfc2047 rfc2045 qp ietf-drums mailabbrev nnheader gnus-util netrc time-date mm-util mail-prsvr gmm-utils wid-edit mailheader canlock sha1 hex-util hashcash mail-utils warnings emacsbug help-mode easymenu multi-isearch goto-addr thingatpt noutline outline easy-mmode view time cus-start cus-load paren cc-styles cc-align cc-engine cc-vars cc-defs regexp-opt tooltip ediff-hook vc-hooks lisp-float-type mwheel x-win x-dnd font-setting tool-bar dnd fontset image fringe lisp-mode register page menu-bar rfn-eshadow timer select scroll-bar mldrag 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 loaddefs button minibuffer faces cus-face files text-properties overlay md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote make-network-process dbusbind system-font-setting font-render-setting gtk x-toolkit x multi-tty emacs)