From unknown Wed Aug 20 00:02:40 2025 X-Loop: owner@emacsbugs.donarmstrong.com Subject: bug#2400: 23.0.90; shell-mode: garbage in prompt Reply-To: Xavier Maillard , 2400@debbugs.gnu.org Resent-From: Xavier Maillard Resent-To: bug-submit-list@lists.donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Fri, 20 Feb 2009 01:35:04 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-Emacs-PR-Message: report 2400 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Received: via spool by submit@emacsbugs.donarmstrong.com id=B.123509318411033 (code B ref -1); Fri, 20 Feb 2009 01:35:04 +0000 Received: (at submit) by emacsbugs.donarmstrong.com; 20 Feb 2009 01:26:24 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=0.1 required=4.0 tests=FOURLA autolearn=no version=3.2.5-bugs.debian.org_2005_01_02 Received: from fencepost.gnu.org (fencepost.gnu.org [140.186.70.10]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n1K1QKjQ011021 for ; Thu, 19 Feb 2009 17:26:21 -0800 Received: from mail.gnu.org ([199.232.76.166]:37910 helo=mx10.gnu.org) by fencepost.gnu.org with esmtp (Exim 4.67) (envelope-from ) id 1LaK7e-00055x-IH for emacs-pretest-bug@gnu.org; Thu, 19 Feb 2009 20:24:10 -0500 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1LaK9g-0002Cb-Ft for emacs-pretest-bug@gnu.org; Thu, 19 Feb 2009 20:26:18 -0500 Received: from ded1.conovae.com ([88.191.52.166]:57061 helo=mf1.conovae.net) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LaK9g-0002CT-21 for emacs-pretest-bug@gnu.org; Thu, 19 Feb 2009 20:26:16 -0500 Received: by mf1.conovae.net (Postfix, from userid 10) id 6C94B261409; Fri, 20 Feb 2009 02:25:12 +0100 (CET) Received: from zogzog.maillard.mobi (IDENT:1000@localhost [127.0.0.1]) by zogzog.maillard.mobi (8.14.3/8.13.8) with ESMTP id n1K1P3qE030090 for ; Fri, 20 Feb 2009 02:25:03 +0100 Received: (from xma@localhost) by zogzog.maillard.mobi (8.14.3/8.13.8/Submit) id n1K1P3HO030089; Fri, 20 Feb 2009 02:25:03 +0100 Date: Fri, 20 Feb 2009 02:25:03 +0100 Message-Id: <200902200125.n1K1P3HO030089@zogzog.maillard.mobi> From: Xavier Maillard To: emacs-pretest-bug@gnu.org Organization: GNU's Not UNIX! User-Agent: Rmail GNU emacs 23.0 on Slackware 12.2.0 Jabber-ID: xma01@jabber.fr X-UUCPssh-Information: Please contact the ISP for more information X-UUCPssh: Found to be clean X-UUCPssh-SpamCheck: not spam, SpamAssassin (not cached, score=-4.245, required 6, ALL_TRUSTED -1.80, BAYES_00 -2.60, TW_GZ 0.08, TW_OG 0.08) X-UUCPssh-From: xma@gnu.org X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) My prompt is rendered with garbage like this: ]0;xma@zogzog:~/var/spool/mail]0;xma@zogzog:~/var/spool/mail[xma@zogzog 00:36:00 mail]$ It happens with emacs -Q Steps to reproduce: M-x shell RET M-x load-library RET ansi-color RET M-x ansi-color-for-comint-on RET Reproducible: always In GNU Emacs 23.0.90.2 (i686-pc-linux-gnu, GTK+ Version 2.12.12) of 2009-02-14 on zogzog Windowing system distributor `The X.Org Foundation', version 11.0.10402000 configured using `configure '--without-xft'' Important settings: value of $LC_ALL: nil value of $LC_COLLATE: en_US.UTF-8 value of $LC_CTYPE: fr_FR.UTF-8 value of $LC_MESSAGES: en_US.UTF-8 value of $LC_MONETARY: fr_FR.UTF-8 value of $LC_NUMERIC: en_US.UTF-8 value of $LC_TIME: en_US.UTF-8 value of $LANG: en_US.UTF-8 value of $XMODIFIERS: nil locale-coding-system: utf-8-unix default-enable-multibyte-characters: t Major mode: Shell Minor modes in effect: rcirc-track-minor-mode: t eev-mode: t shell-dirtrack-mode: t jabber-activity-mode: t auto-insert-mode: t global-hi-lock-mode: t hi-lock-mode: t show-paren-mode: t global-auto-revert-mode: t display-time-mode: t recentf-mode: t icomplete-mode: t desktop-save-mode: t auto-image-file-mode: t tooltip-mode: t mouse-wheel-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t global-auto-composition-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t column-number-mode: t transient-mark-mode: t abbrev-mode: t Recent input: u p o n , SPC F R E E d SPC SPC d SPC SPC SPC d d d d d d d C-x 1 d d d d d d d d d d d d d d d d d C-l d d d M-< h C-x 1 l f a i r y d a y s y i d a y s y h C-M-t y h l f a i r y d a y s y h C-x 1 C-l C-l C-l C-M-t f a i r [ y ] i ] h M-> C-x 1 C-l C-l C-l C-l C-M-t O S S-SPC X d d d d d d d d d d d d d d d d d d d d d d d d C-l d d d d d d d d d d d d d M-< h C-x 1 C-l C-l 1 4 8 8 j C-l C-l M-x a n s i - t e r M-k C-h v s h e l l - m o d e h o M-k M-x s h e l l e x p o r t SPC T E R M = v t 1 0 0 l s l s SPC - - c o l o r = y e s M-p SPC - l a r t SPC / t m p / C-a C-a C-SPC M-w M-x r e p o r t - e m Recent messages: Computing summary lines...done No previous message Computing summary lines...done Mark set Computing summary lines...done Mark set Computing summary lines...done Type "q" to restore this window. History item: 1 Mark set Xavier -- http://www.gnu.org http://www.april.org http://www.lolica.org From unknown Wed Aug 20 00:02:40 2025 X-Loop: owner@emacsbugs.donarmstrong.com Subject: bug#2400: 23.0.90; shell-mode: garbage in prompt Reply-To: Chong Yidong , 2400@debbugs.gnu.org Resent-From: Chong Yidong Resent-To: bug-submit-list@lists.donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Fri, 20 Feb 2009 02:05:05 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-Emacs-PR-Message: followup 2400 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Received: via spool by 2400-submit@emacsbugs.donarmstrong.com id=B2400.123509517519301 (code B ref 2400); Fri, 20 Feb 2009 02:05:05 +0000 Received: (at 2400) by emacsbugs.donarmstrong.com; 20 Feb 2009 01:59:35 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=0.0 required=4.0 tests=none autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02 Received: from cyd.mit.edu (CYD.MIT.EDU [18.115.2.24]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n1K1xVrO019281 for <2400@emacsbugs.donarmstrong.com>; Thu, 19 Feb 2009 17:59:32 -0800 Received: by cyd.mit.edu (Postfix, from userid 1000) id 3943A57E20C; Thu, 19 Feb 2009 21:00:26 -0500 (EST) From: Chong Yidong To: Xavier Maillard Cc: 2400@debbugs.gnu.org Date: Thu, 19 Feb 2009 21:00:26 -0500 Message-ID: <878wo1x3yd.fsf@cyd.mit.edu> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii > My prompt is rendered with garbage like this: > ... > It happens with emacs -Q > > Steps to reproduce: > > M-x shell RET > M-x load-library RET ansi-color RET > M-x ansi-color-for-comint-on RET I can't reproduce this. What is the $PS1 setting for your prompt? And does this bug occur in Emacs 22? From unknown Wed Aug 20 00:02:40 2025 X-Loop: owner@emacsbugs.donarmstrong.com Subject: bug#2400: 23.0.90; shell-mode: garbage in prompt Reply-To: Stefan Monnier , 2400@debbugs.gnu.org Resent-From: Stefan Monnier Resent-To: bug-submit-list@lists.donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Fri, 20 Feb 2009 03:50:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-Emacs-PR-Message: followup 2400 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Received: via spool by 2400-submit@emacsbugs.donarmstrong.com id=B2400.123510143116409 (code B ref 2400); Fri, 20 Feb 2009 03:50:03 +0000 Received: (at 2400) by emacsbugs.donarmstrong.com; 20 Feb 2009 03:43:51 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=-0.5 required=4.0 tests=HAS_BUG_NUMBER,XIRONPORT autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02 Received: from ironport2-out.teksavvy.com (ironport2-out.teksavvy.com [206.248.154.182]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n1K3hm1U016403 for <2400@emacsbugs.donarmstrong.com>; Thu, 19 Feb 2009 19:43:49 -0800 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Ah0FAAu2nUlMCpTK/2dsb2JhbACBbtFHhA8Ggz0 X-IronPort-AV: E=Sophos;i="4.38,238,1233550800"; d="scan'208";a="34122361" Received: from 76-10-148-202.dsl.teksavvy.com (HELO pastel.home) ([76.10.148.202]) by ironport2-out.teksavvy.com with ESMTP; 19 Feb 2009 22:43:42 -0500 Received: by pastel.home (Postfix, from userid 20848) id C96744B488; Thu, 19 Feb 2009 22:43:40 -0500 (EST) From: Stefan Monnier To: Xavier Maillard Cc: 2400@debbugs.gnu.org Message-ID: References: <200902200125.n1K1P3HO030089@zogzog.maillard.mobi> Date: Thu, 19 Feb 2009 22:43:40 -0500 In-Reply-To: <200902200125.n1K1P3HO030089@zogzog.maillard.mobi> (Xavier Maillard's message of "Fri, 20 Feb 2009 02:25:03 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.90 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit > My prompt is rendered with garbage like this: > ]0;xma@zogzog:~/var/spool/mail]0;xma@zogzog:~/var/spool/mail[xma@zogzog 00:36:00 mail]$ These don't look like color escape sequences. So the problem is most likely in your prompt. Stefan From unknown Wed Aug 20 00:02:40 2025 X-Loop: owner@emacsbugs.donarmstrong.com Subject: bug#2400: 23.0.90; shell-mode: garbage in prompt Reply-To: Xavier Maillard , 2400@debbugs.gnu.org Resent-From: Xavier Maillard Resent-To: bug-submit-list@lists.donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Fri, 20 Feb 2009 20:35:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-Emacs-PR-Message: followup 2400 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Received: via spool by 2400-submit@emacsbugs.donarmstrong.com id=B2400.12351615834850 (code B ref 2400); Fri, 20 Feb 2009 20:35:03 +0000 Received: (at 2400) by emacsbugs.donarmstrong.com; 20 Feb 2009 20:26:23 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=-3.0 required=4.0 tests=HAS_BUG_NUMBER autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02 Received: from mf1.conovae.net (ded1.conovae.com [88.191.52.166]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n1KKQJPv004844 for <2400@emacsbugs.donarmstrong.com>; Fri, 20 Feb 2009 12:26:20 -0800 Received: by mf1.conovae.net (Postfix, from userid 10) id E6B70261414; Fri, 20 Feb 2009 21:25:19 +0100 (CET) Received: from zogzog.maillard.mobi (IDENT:25@localhost [127.0.0.1]) by zogzog.maillard.mobi (8.14.3/8.13.8) with ESMTP id n1KCDupp027034; Fri, 20 Feb 2009 13:14:00 +0100 Received: (from xma@localhost) by zogzog.maillard.mobi (8.14.3/8.13.8/Submit) id n1K9P2Oo021328; Fri, 20 Feb 2009 10:25:02 +0100 Date: Fri, 20 Feb 2009 10:25:02 +0100 Message-Id: <200902200925.n1K9P2Oo021328@zogzog.maillard.mobi> From: Xavier Maillard To: Stefan Monnier CC: 2400@debbugs.gnu.org In-reply-to: message from Stefan Monnier on Thu, 19 Feb 2009 22:43:40 -0500 Organization: GNU's Not UNIX! User-Agent: Rmail GNU emacs 23.0 on Slackware 12.2.0 Jabber-ID: xma01@jabber.fr References: X-UUCPssh-Information: Please contact the ISP for more information X-UUCPssh: Found to be clean X-UUCPssh-SpamCheck: not spam, SpamAssassin (not cached, score=-4.399, required 6, autolearn=not spam, ALL_TRUSTED -1.80, BAYES_00 -2.60) X-UUCPssh-From: xma@gnu.org > My prompt is rendered with garbage like this: > ]0;xma@zogzog:~/var/spool/mail]0;xma@zogzog:~/var/spool/mail[xma@zogzog 00:36:00 mail]$ These don't look like color escape sequences. So the problem is most likely in your prompt. Here is the definition of my PS1 variable: \[\033]0;\u@\h: \w\007\]\[\033[0m\033[0;1m\][\[\033[0m\033[0;32m\]\u@\h \[\033[0m\033[1;34m\]\t \[\033[0m\033[0;36m\]\W\[\033[0m\033[0;1m\]]\[\033[0m\033[0;37m\]\$ The weird thing is the line above the prompt. My prompt is no more than [xma@zogzog 00:36:00 mail] here. Regards, Xavier -- http://www.gnu.org http://www.april.org http://www.lolica.org From unknown Wed Aug 20 00:02:40 2025 X-Loop: owner@emacsbugs.donarmstrong.com Subject: bug#2400: 23.0.90; shell-mode: garbage in prompt Reply-To: Xavier Maillard , 2400@debbugs.gnu.org Resent-From: Xavier Maillard Resent-To: bug-submit-list@lists.donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Fri, 20 Feb 2009 20:35:05 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-Emacs-PR-Message: followup 2400 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Received: via spool by 2400-submit@emacsbugs.donarmstrong.com id=B2400.12351615954859 (code B ref 2400); Fri, 20 Feb 2009 20:35:05 +0000 Received: (at 2400) by emacsbugs.donarmstrong.com; 20 Feb 2009 20:26:35 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=0.0 required=4.0 tests=none autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02 Received: from mf1.conovae.net (ded1.conovae.com [88.191.52.166]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n1KKQWi2004852 for <2400@emacsbugs.donarmstrong.com>; Fri, 20 Feb 2009 12:26:33 -0800 Received: by mf1.conovae.net (Postfix, from userid 10) id A0E70261412; Fri, 20 Feb 2009 21:25:19 +0100 (CET) Received: from zogzog.maillard.mobi (IDENT:25@localhost [127.0.0.1]) by zogzog.maillard.mobi (8.14.3/8.13.8) with ESMTP id n1KCDupn027034; Fri, 20 Feb 2009 13:13:58 +0100 Received: (from xma@localhost) by zogzog.maillard.mobi (8.14.3/8.13.8/Submit) id n1K9P4K6021329; Fri, 20 Feb 2009 10:25:04 +0100 Date: Fri, 20 Feb 2009 10:25:04 +0100 Message-Id: <200902200925.n1K9P4K6021329@zogzog.maillard.mobi> From: Xavier Maillard To: Chong Yidong CC: 2400@debbugs.gnu.org In-reply-to: message from Chong Yidong on Thu, 19 Feb 2009 21:00:26 -0500 Organization: GNU's Not UNIX! User-Agent: Rmail GNU emacs 23.0 on Slackware 12.2.0 Jabber-ID: xma01@jabber.fr References: X-UUCPssh-Information: Please contact the ISP for more information X-UUCPssh: Found to be clean X-UUCPssh-SpamCheck: not spam, SpamAssassin (not cached, score=-4.399, required 6, autolearn=not spam, ALL_TRUSTED -1.80, BAYES_00 -2.60) X-UUCPssh-From: xma@gnu.org > My prompt is rendered with garbage like this: > ... > It happens with emacs -Q > > Steps to reproduce: > > M-x shell RET > M-x load-library RET ansi-color RET > M-x ansi-color-for-comint-on RET I can't reproduce this. What is the $PS1 setting for your prompt? And does this bug occur in Emacs 22? It occurs both on Emacs 22 and Emacs 23. As for the PS1 value, see my other post. Regards, Xavier -- http://www.gnu.org http://www.april.org http://www.lolica.org From unknown Wed Aug 20 00:02:40 2025 X-Loop: owner@emacsbugs.donarmstrong.com Subject: bug#2400: 23.0.90; shell-mode: garbage in prompt Reply-To: Stefan Monnier , 2400@debbugs.gnu.org Resent-From: Stefan Monnier Resent-To: bug-submit-list@lists.donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Fri, 20 Feb 2009 21:20:07 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-Emacs-PR-Message: followup 2400 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Received: via spool by 2400-submit@emacsbugs.donarmstrong.com id=B2400.123516452717975 (code B ref 2400); Fri, 20 Feb 2009 21:20:07 +0000 Received: (at 2400) by emacsbugs.donarmstrong.com; 20 Feb 2009 21:15:27 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=-3.0 required=4.0 tests=HAS_BUG_NUMBER autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02 Received: from chene.dit.umontreal.ca (chene.dit.umontreal.ca [132.204.246.20]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n1KLFNES017969 for <2400@emacsbugs.donarmstrong.com>; Fri, 20 Feb 2009 13:15:25 -0800 Received: from alfajor.home (vpn-132-204-232-138.acd.umontreal.ca [132.204.232.138]) by chene.dit.umontreal.ca (8.14.1/8.14.1) with ESMTP id n1KLFMWq032065; Fri, 20 Feb 2009 16:15:22 -0500 Received: by alfajor.home (Postfix, from userid 20848) id 59FF2A22DC; Fri, 20 Feb 2009 16:15:22 -0500 (EST) From: Stefan Monnier To: Xavier Maillard Cc: 2400@debbugs.gnu.org Message-ID: References: <200902200925.n1K9P2Oo021328@zogzog.maillard.mobi> Date: Fri, 20 Feb 2009 16:15:22 -0500 In-Reply-To: <200902200925.n1K9P2Oo021328@zogzog.maillard.mobi> (Xavier Maillard's message of "Fri, 20 Feb 2009 10:25:02 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.90 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-NAI-Spam-Score: 0 X-NAI-Spam-Rules: 1 Rules triggered RV3216=0 > Here is the definition of my PS1 variable: > \[\033]0;\u@\h: \w\007\]\[\033[0m\033[0;1m\][\[\033[0m\033[0;32m\]\u@\h \[\033[0m\033[1;34m\]\t \[\033[0m\033[0;36m\]\W\[\033[0m\033[0;1m\]]\[\033[0m\033[0;37m\]\$ That's its value, not its definition. Where do you set it and how? Stefan From rgm@gnu.org Wed Feb 25 00:18:34 2009 Received: (at control) by emacsbugs.donarmstrong.com; 25 Feb 2009 08:18:34 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=-5.0 required=4.0 tests=VALID_BTS_CONTROL, X_DEBBUGS_NO_ACK autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02 Received: from fencepost.gnu.org (fencepost.gnu.org [140.186.70.10]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n1P8IVDq025601 for ; Wed, 25 Feb 2009 00:18:33 -0800 Received: from rgm by fencepost.gnu.org with local (Exim 4.67) (envelope-from ) id 1LcEwB-0000wu-MI; Wed, 25 Feb 2009 03:16:15 -0500 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <18852.65103.317470.250931@fencepost.gnu.org> Date: Wed, 25 Feb 2009 03:16:15 -0500 From: Glenn Morris To: control Subject: control message X-Debbugs-No-Ack: yes tags 2400 moreinfo reassign 686 emacs,w32 close 1349 tags 1575 moreinfo unreproducible close 1581 tags 1691 moreinfo unreproducible From debbugs-submit-bounces@debbugs.gnu.org Fri Jul 15 16:55:25 2011 Received: (at control) by debbugs.gnu.org; 15 Jul 2011 20:55:26 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QhpPx-0000A8-Id for submit@debbugs.gnu.org; Fri, 15 Jul 2011 16:55:25 -0400 Received: from fencepost.gnu.org ([140.186.70.10]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QhpPv-00009u-Vn; Fri, 15 Jul 2011 16:55:24 -0400 Received: from localhost ([127.0.0.1]:45234) by fencepost.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QhpPq-0007zB-Se; Fri, 15 Jul 2011 16:55:18 -0400 From: Glenn Morris To: 2400-done@debbugs.gnu.org Subject: Re: bug#2400: 23.0.90; shell-mode: garbage in prompt References: <200902200925.n1K9P2Oo021328@zogzog.maillard.mobi> X-Spook: Aladdin bluebird UOP crypto anarchy benelux DRM doctrine X-Ran: "_ZRq{UMX97c.WH';TyJwmhGABi&5R2(@Bb'3*0<3)cskV~J;YXYTg66bDN?]7T{Mm7q,P X-Hue: white X-Attribution: GM Date: Fri, 15 Jul 2011 16:55:18 -0400 In-Reply-To: <200902200925.n1K9P2Oo021328@zogzog.maillard.mobi> (Xavier Maillard's message of "Fri, 20 Feb 2009 10:25:02 +0100") Message-ID: User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Score: -6.4 (------) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.4 (------) tags 2400 notabug stop Xavier Maillard wrote: > Here is the definition of my PS1 variable: > > \[\033]0;\u@\h: \w\007\]\[\033[0m\033[0;1m\][\[\033[0m\033[0;32m\]\u@\h \[\033[0m\033[1;34m\]\t \[\033[0m\033[0;36m\]\W\[\033[0m\033[0;1m\]]\[\033[0m\033[0;37m\]\$ This does more than just set your prompt and colour it. It also sets the xterm title to "user@host: pwd". man console_codes: ESC ] 2 ; txt ST Set window title to txt This is not an ANSI colour escape sequence and so is not handled by ansi-color. It's not appropriate to use such a PS1 setting on something that is not an xterm. For example, it also messes up on the Linux console. From unknown Wed Aug 20 00:02:40 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.427 (Entity 5.427) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: Xavier Maillard Subject: bug#2400: closed (Re: bug#2400: 23.0.90; shell-mode: garbage in prompt) Message-ID: References: <200902200125.n1K1P3HO030089@zogzog.maillard.mobi> X-Gnu-PR-Message: they-closed 2400 X-Gnu-PR-Package: emacs X-Gnu-PR-Keywords: notabug moreinfo Reply-To: 2400@debbugs.gnu.org Date: Fri, 15 Jul 2011 20:56:03 +0000 Content-Type: multipart/mixed; boundary="----------=_1310763363-691-1" This is a multi-part message in MIME format... ------------=_1310763363-691-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #2400: 23.0.90; shell-mode: garbage in prompt which was filed against the emacs package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 2400@debbugs.gnu.org. --=20 2400: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D2400 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1310763363-691-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 2400-done) by debbugs.gnu.org; 15 Jul 2011 20:55:29 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QhpQ0-0000AJ-PU for submit@debbugs.gnu.org; Fri, 15 Jul 2011 16:55:28 -0400 Received: from fencepost.gnu.org ([140.186.70.10]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QhpPv-00009u-Vn; Fri, 15 Jul 2011 16:55:24 -0400 Received: from localhost ([127.0.0.1]:45234) by fencepost.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QhpPq-0007zB-Se; Fri, 15 Jul 2011 16:55:18 -0400 From: Glenn Morris To: 2400-done@debbugs.gnu.org Subject: Re: bug#2400: 23.0.90; shell-mode: garbage in prompt References: <200902200925.n1K9P2Oo021328@zogzog.maillard.mobi> X-Spook: Aladdin bluebird UOP crypto anarchy benelux DRM doctrine X-Ran: "_ZRq{UMX97c.WH';TyJwmhGABi&5R2(@Bb'3*0<3)cskV~J;YXYTg66bDN?]7T{Mm7q,P X-Hue: white X-Attribution: GM Date: Fri, 15 Jul 2011 16:55:18 -0400 In-Reply-To: <200902200925.n1K9P2Oo021328@zogzog.maillard.mobi> (Xavier Maillard's message of "Fri, 20 Feb 2009 10:25:02 +0100") Message-ID: User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Score: -6.4 (------) X-Debbugs-Envelope-To: 2400-done X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.4 (------) tags 2400 notabug stop Xavier Maillard wrote: > Here is the definition of my PS1 variable: > > \[\033]0;\u@\h: \w\007\]\[\033[0m\033[0;1m\][\[\033[0m\033[0;32m\]\u@\h \[\033[0m\033[1;34m\]\t \[\033[0m\033[0;36m\]\W\[\033[0m\033[0;1m\]]\[\033[0m\033[0;37m\]\$ This does more than just set your prompt and colour it. It also sets the xterm title to "user@host: pwd". man console_codes: ESC ] 2 ; txt ST Set window title to txt This is not an ANSI colour escape sequence and so is not handled by ansi-color. It's not appropriate to use such a PS1 setting on something that is not an xterm. For example, it also messes up on the Linux console. ------------=_1310763363-691-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by emacsbugs.donarmstrong.com; 20 Feb 2009 01:26:24 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=0.1 required=4.0 tests=FOURLA autolearn=no version=3.2.5-bugs.debian.org_2005_01_02 Received: from fencepost.gnu.org (fencepost.gnu.org [140.186.70.10]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n1K1QKjQ011021 for ; Thu, 19 Feb 2009 17:26:21 -0800 Received: from mail.gnu.org ([199.232.76.166]:37910 helo=mx10.gnu.org) by fencepost.gnu.org with esmtp (Exim 4.67) (envelope-from ) id 1LaK7e-00055x-IH for emacs-pretest-bug@gnu.org; Thu, 19 Feb 2009 20:24:10 -0500 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1LaK9g-0002Cb-Ft for emacs-pretest-bug@gnu.org; Thu, 19 Feb 2009 20:26:18 -0500 Received: from ded1.conovae.com ([88.191.52.166]:57061 helo=mf1.conovae.net) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LaK9g-0002CT-21 for emacs-pretest-bug@gnu.org; Thu, 19 Feb 2009 20:26:16 -0500 Received: by mf1.conovae.net (Postfix, from userid 10) id 6C94B261409; Fri, 20 Feb 2009 02:25:12 +0100 (CET) Received: from zogzog.maillard.mobi (IDENT:1000@localhost [127.0.0.1]) by zogzog.maillard.mobi (8.14.3/8.13.8) with ESMTP id n1K1P3qE030090 for ; Fri, 20 Feb 2009 02:25:03 +0100 Received: (from xma@localhost) by zogzog.maillard.mobi (8.14.3/8.13.8/Submit) id n1K1P3HO030089; Fri, 20 Feb 2009 02:25:03 +0100 Date: Fri, 20 Feb 2009 02:25:03 +0100 Message-Id: <200902200125.n1K1P3HO030089@zogzog.maillard.mobi> From: Xavier Maillard To: emacs-pretest-bug@gnu.org Subject: 23.0.90; shell-mode: garbage in prompt Organization: GNU's Not UNIX! User-Agent: Rmail GNU emacs 23.0 on Slackware 12.2.0 Jabber-ID: xma01@jabber.fr Reply-to: Xavier Maillard X-UUCPssh-Information: Please contact the ISP for more information X-UUCPssh: Found to be clean X-UUCPssh-SpamCheck: not spam, SpamAssassin (not cached, score=-4.245, required 6, ALL_TRUSTED -1.80, BAYES_00 -2.60, TW_GZ 0.08, TW_OG 0.08) X-UUCPssh-From: xma@gnu.org X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) My prompt is rendered with garbage like this: ]0;xma@zogzog:~/var/spool/mail]0;xma@zogzog:~/var/spool/mail[xma@zogzog 00:36:00 mail]$ It happens with emacs -Q Steps to reproduce: M-x shell RET M-x load-library RET ansi-color RET M-x ansi-color-for-comint-on RET Reproducible: always In GNU Emacs 23.0.90.2 (i686-pc-linux-gnu, GTK+ Version 2.12.12) of 2009-02-14 on zogzog Windowing system distributor `The X.Org Foundation', version 11.0.10402000 configured using `configure '--without-xft'' Important settings: value of $LC_ALL: nil value of $LC_COLLATE: en_US.UTF-8 value of $LC_CTYPE: fr_FR.UTF-8 value of $LC_MESSAGES: en_US.UTF-8 value of $LC_MONETARY: fr_FR.UTF-8 value of $LC_NUMERIC: en_US.UTF-8 value of $LC_TIME: en_US.UTF-8 value of $LANG: en_US.UTF-8 value of $XMODIFIERS: nil locale-coding-system: utf-8-unix default-enable-multibyte-characters: t Major mode: Shell Minor modes in effect: rcirc-track-minor-mode: t eev-mode: t shell-dirtrack-mode: t jabber-activity-mode: t auto-insert-mode: t global-hi-lock-mode: t hi-lock-mode: t show-paren-mode: t global-auto-revert-mode: t display-time-mode: t recentf-mode: t icomplete-mode: t desktop-save-mode: t auto-image-file-mode: t tooltip-mode: t mouse-wheel-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t global-auto-composition-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t column-number-mode: t transient-mark-mode: t abbrev-mode: t Recent input: u p o n , SPC F R E E d SPC SPC d SPC SPC SPC d d d d d d d C-x 1 d d d d d d d d d d d d d d d d d C-l d d d M-< h C-x 1 l f a i r y d a y s y i d a y s y h C-M-t y h l f a i r y d a y s y h C-x 1 C-l C-l C-l C-M-t f a i r [ y ] i ] h M-> C-x 1 C-l C-l C-l C-l C-M-t O S S-SPC X d d d d d d d d d d d d d d d d d d d d d d d d C-l d d d d d d d d d d d d d M-< h C-x 1 C-l C-l 1 4 8 8 j C-l C-l M-x a n s i - t e r M-k C-h v s h e l l - m o d e h o M-k M-x s h e l l e x p o r t SPC T E R M = v t 1 0 0 l s l s SPC - - c o l o r = y e s M-p SPC - l a r t SPC / t m p / C-a C-a C-SPC M-w M-x r e p o r t - e m Recent messages: Computing summary lines...done No previous message Computing summary lines...done Mark set Computing summary lines...done Mark set Computing summary lines...done Type "q" to restore this window. History item: 1 Mark set Xavier -- http://www.gnu.org http://www.april.org http://www.lolica.org ------------=_1310763363-691-1-- From unknown Wed Aug 20 00:02:40 2025 X-Loop: help-debbugs@gnu.org Subject: bug#2400: 23.0.90; shell-mode: garbage in prompt Resent-From: Glenn Morris Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 15 Jul 2011 20:59:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 2400 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: notabug To: 2400@debbugs.gnu.org Received: via spool by 2400-submit@debbugs.gnu.org id=B2400.1310763496934 (code B ref 2400); Fri, 15 Jul 2011 20:59:02 +0000 Received: (at 2400) by debbugs.gnu.org; 15 Jul 2011 20:58:16 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QhpSh-0000F1-FD for submit@debbugs.gnu.org; Fri, 15 Jul 2011 16:58:15 -0400 Received: from fencepost.gnu.org ([140.186.70.10]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QhpSg-0000Er-A3 for 2400@debbugs.gnu.org; Fri, 15 Jul 2011 16:58:14 -0400 Received: from localhost ([127.0.0.1]:43380) by fencepost.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QhpSb-00086U-6i; Fri, 15 Jul 2011 16:58:09 -0400 From: Glenn Morris References: <200902200925.n1K9P2Oo021328@zogzog.maillard.mobi> X-Spook: ASLET kilo class SCUD missile $400 million in gold X-Ran: =hmz+AhtU&s&.'"YTN6TTQ3jGEn@RP(qL~i$I\{E8^6&F<_*Pm\YHa^gq~EoZ: (Glenn Morris's message of "Fri, 15 Jul 2011 16:55:18 -0400") Message-ID: <1raacfb6se.fsf@fencepost.gnu.org> User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Score: -6.4 (------) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.4 (------) Glenn Morris wrote: > ESC ] 2 ; txt ST Set window title to txt I meant to quote: ESC ] 0 ; txt ST Set icon name and window title to txt. which comes from the xterm-specific section of `man console_codes'.