From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Michael Hoffman Newsgroups: gmane.emacs.bugs Subject: bug#11919: 24.1; term-emulate-term does not process bash's Ctrl-Z signal of directory name when an AnSi message is present Date: Wed, 11 Jul 2012 17:45:16 -0700 Message-ID: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: dough.gmane.org 1342054005 466 80.91.229.3 (12 Jul 2012 00:46:45 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 12 Jul 2012 00:46:45 +0000 (UTC) To: 11919@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Jul 12 02:46:41 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 1Sp7YE-0005xm-3z for geb-bug-gnu-emacs@m.gmane.org; Thu, 12 Jul 2012 02:46:38 +0200 Original-Received: from localhost ([::1]:55000 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Sp7YD-00028M-5q for geb-bug-gnu-emacs@m.gmane.org; Wed, 11 Jul 2012 20:46:37 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:33565) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Sp7YA-00028H-S6 for bug-gnu-emacs@gnu.org; Wed, 11 Jul 2012 20:46:36 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Sp7Y9-0002Db-MH for bug-gnu-emacs@gnu.org; Wed, 11 Jul 2012 20:46:34 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:52939) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Sp7Y9-0002DX-II for bug-gnu-emacs@gnu.org; Wed, 11 Jul 2012 20:46:33 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1Sp7dS-000745-6U for bug-gnu-emacs@gnu.org; Wed, 11 Jul 2012 20:52:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Michael Hoffman Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 12 Jul 2012 00:52:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 11919 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.134205427527097 (code B ref -1); Thu, 12 Jul 2012 00:52:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 12 Jul 2012 00:51:15 +0000 Original-Received: from localhost ([127.0.0.1]:34252 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1Sp7cg-000730-BC for submit@debbugs.gnu.org; Wed, 11 Jul 2012 20:51:14 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:56637) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1Sp7cd-00072r-SF for submit@debbugs.gnu.org; Wed, 11 Jul 2012 20:51:12 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Sp7XJ-00023e-Gp for submit@debbugs.gnu.org; Wed, 11 Jul 2012 20:45:42 -0400 Original-Received: from lists.gnu.org ([208.118.235.17]:35022) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Sp7XJ-00023a-BZ for submit@debbugs.gnu.org; Wed, 11 Jul 2012 20:45:41 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:33417) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Sp7XH-0001RK-Qb for bug-gnu-emacs@gnu.org; Wed, 11 Jul 2012 20:45:41 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Sp7XG-00020v-16 for bug-gnu-emacs@gnu.org; Wed, 11 Jul 2012 20:45:39 -0400 Original-Received: from mail-ob0-f169.google.com ([209.85.214.169]:63616) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Sp7XF-00020o-RV for bug-gnu-emacs@gnu.org; Wed, 11 Jul 2012 20:45:37 -0400 Original-Received: by obhx4 with SMTP id x4so2816920obh.0 for ; Wed, 11 Jul 2012 17:45:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:from:date:x-google-sender-auth:message-id :subject:to:content-type; bh=S4WwU2MSjwG/z6jG8xH8Ksh/SH27wnUDfpqidRj4IxI=; b=Aq/OD2CAe9JmD0jjRGsqmIrsRk6B779OXkyvgwKJa4OicbeegcLu194NbfT4mj0uBH /jrcpFjqAivVL1ou7lV+UAdapULeJ2vpiN1uSctP11WrNEBOLtw2OF7AkUrvZQPd/bM6 etP2O/M6AHmlC//x39Lemqp2t4E5nN1V3cZMwjnFK/9uMH2vLIEwvB1btygCzb4GF7CY 6rcW/YiljAEsxc9pg5CwTxHAyGO0+Q1TKpUjQPeDfbsu4kchsyZuDG5dq+BVcZiRQUcG QXeRtdlqUQIWtKfUhaCyYUaiLiqxCWLYoSOkJdlgy7FC46174H+g0C4G2Bo8oW474fLp i3Tg== Original-Received: by 10.182.146.84 with SMTP id ta20mr5521634obb.19.1342053937244; Wed, 11 Jul 2012 17:45:37 -0700 (PDT) Original-Received: by 10.76.167.161 with HTTP; Wed, 11 Jul 2012 17:45:16 -0700 (PDT) X-Google-Sender-Auth: o81Jkx5KvRnu2Y53MJRPrnkO-7I 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:61837 Archived-At: This bug report will be sent to the Bug-GNU-Emacs mailing list and the GNU bug tracker at debbugs.gnu.org. Please check that the From: line contains a valid email address. After a delay of up to one day, you should receive an acknowledgement at that address. Please write in English if possible, as the Emacs maintainers usually do not have translators for other languages. 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': I have GNU bash, version 4.1.2(1). When I do this: 1) emacs -Q 2) M-x ansi-term RET /bin/bash RET 3) PS1='\033AnSiTu x\012$ ' RET >From then on, every prompt will be preceded by a Ctrl-Z character and the working directory. This is because recent versions of bash try to figure out whether they are running under emacs, and if they are, output Ctrl-Z and the working directory before the PS1 prompt. term-emulate-terminal normally eliminates such garbage, but not when it has also processed an AnSi message. The elimination only happens when the following conditions are true: (and (eq char ?\032) (not handled-ansi-message)) Suggested fix: eliminate the "(not handled-ansi-message)" form. 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 /net/gs/vol3/software/modules-sw/emacs/24.1/Linux/RHEL6/x86_64/share/emacs/24.1/etc/DEBUG. In GNU Emacs 24.1.2 (x86_64-unknown-linux-gnu, GTK+ Version 2.18.9) of 2012-06-21 on rhel6-x64.grid.gs.washington.edu Windowing system distributor `Red Hat, Inc.', version 11.0.11004000 Configured using: `configure '--without-gif' '--with-x' '--with-x-toolkit=gtk' '--prefix=/net/gs/vol3/software/modules-sw/emacs/24.1/Linux/RHEL6/x86_64' 'LDFLAGS=-L/net/gs/vol3/software/modules-sw/boost/1.45.0/Linux/RHEL6/x86_64/lib/ -L/net/gs/vol3/software/modules-sw/R/2.9.0/Linux/RHEL6/x86_64/lib/' 'CPPFLAGS=-I/net/gs/vol3/software/modules-sw/boost/1.45.0/Linux/RHEL6/x86_64/include/ -I/net/gs/vol3/software/modules-sw/R/2.9.0/Linux/RHEL6/x86_64/include/'' Important settings: value of $LC_ALL: nil value of $LC_COLLATE: nil value of $LC_CTYPE: en_US value of $LC_MESSAGES: nil value of $LC_MONETARY: nil value of $LC_NUMERIC: nil value of $LC_TIME: nil value of $LANG: en_US.UTF-8 value of $XMODIFIERS: nil locale-coding-system: iso-latin-1-unix default enable-multibyte-characters: t Major mode: Lisp Interaction Minor modes in effect: 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 blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t Recent input: M-x r e p o r t - b Recent messages: For information about GNU Emacs and the GNU system, type C-h C-a. goto-history-element: Beginning of history; no preceding item goto-history-element: End of history; no default available Load-path shadows: None found. Features: (shadow sort gnus-util mail-extr emacsbug message format-spec rfc822 mml easymenu mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail regexp-opt rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils time-date tooltip ediff-hook vc-hooks lisp-float-type mwheel x-win x-dnd tool-bar dnd fontset image fringe lisp-mode register page menu-bar rfn-eshadow timer select scroll-bar 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 loaddefs button faces cus-face files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote make-network-process dynamic-setting font-render-setting move-toolbar gtk x-toolkit x multi-tty emacs)