From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: bug-gnu-emacs@gnu.org (Emacs bug Tracking System) Newsgroups: gmane.emacs.bugs Subject: bug#5255: marked as done (23.1.90; Wrong prompt in term) Date: Mon, 28 Dec 2009 19:29:02 +0000 Message-ID: References: <200912281928.nBSJSLSU012776@godzilla.ics.uci.edu> <9de1a5ef0912201844r45f00f26s82560a57251524d0@mail.gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----------=_1262028542-26543-0" X-Trace: ger.gmane.org 1262029122 25963 80.91.229.12 (28 Dec 2009 19:38:42 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 28 Dec 2009 19:38:42 +0000 (UTC) Cc: emacs-bug-tracker@debbugs.gnu.org To: Dan Nicolaescu Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Dec 28 20:38:35 2009 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1NPLQI-0003Rs-03 for geb-bug-gnu-emacs@m.gmane.org; Mon, 28 Dec 2009 20:38:34 +0100 Original-Received: from localhost ([127.0.0.1]:57792 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NPLQI-0004tr-9V for geb-bug-gnu-emacs@m.gmane.org; Mon, 28 Dec 2009 14:38:34 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NPLQD-0004tJ-5Y for bug-gnu-emacs@gnu.org; Mon, 28 Dec 2009 14:38:29 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NPLQ3-0004n7-LQ for bug-gnu-emacs@gnu.org; Mon, 28 Dec 2009 14:38:28 -0500 Original-Received: from [199.232.76.173] (port=39488 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NPLPt-0004gh-6l; Mon, 28 Dec 2009 14:38:09 -0500 Original-Received: from [140.186.70.43] (port=40444 helo=debbugs.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1NPLPs-0008WF-Kn; Mon, 28 Dec 2009 14:38:08 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1NPLH4-0006u9-Ea; Mon, 28 Dec 2009 14:29:02 -0500 X-Mailer: MIME-tools 5.427 (Entity 5.427) X-Loop: bug-gnu-emacs@gnu.org X-Emacs-PR-Message: closed 5255 X-Emacs-PR-Package: emacs X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:33795 Archived-At: This is a multi-part message in MIME format... ------------=_1262028542-26543-0 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 Your message dated Mon, 28 Dec 2009 11:28:21 -0800 (PST) with message-id <200912281928.nBSJSLSU012776@godzilla.ics.uci.edu> and subject line Re: bug#5255: 23.1.90; Wrong prompt in term has caused the Emacs bug report #5255, regarding 23.1.90; Wrong prompt in term to be marked as done. This means that you claim that the problem has been dealt with. If this is not the case it is now your responsibility to reopen the bug report if necessary, and/or fix the problem forthwith. (NB: If you are a system administrator and have no idea what this message is talking about, this may indicate a serious mail system misconfiguration somewhere. Please contact bug-gnu-emacs@gnu.org immediately.) --=20 5255: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D5255 Emacs Bug Tracking System Contact bug-gnu-emacs@gnu.org with problems ------------=_1262028542-26543-0 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 21 Dec 2009 03:23:10 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NMYrU-0003Hh-H1 for submit@debbugs.gnu.org; Sun, 20 Dec 2009 22:23:10 -0500 Received: from fencepost.gnu.org ([140.186.70.10]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NMYG4-00034V-Kk for submit@debbugs.gnu.org; Sun, 20 Dec 2009 21:44:29 -0500 Received: from mail.gnu.org ([199.232.76.166]:54570 helo=mx10.gnu.org) by fencepost.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NMYG1-0000xN-5p for emacs-pretest-bug@gnu.org; Sun, 20 Dec 2009 21:44:25 -0500 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1NMYG0-0006hC-13 for emacs-pretest-bug@gnu.org; Sun, 20 Dec 2009 21:44:25 -0500 X-Spam-Checker-Version: SpamAssassin 3.1.0 (2005-09-13) on monty-python X-Spam-Level: X-Spam-Status: No, score=-0.9 required=5.0 tests=AWL,BAYES_00, DNS_FROM_RFC_POST autolearn=no version=3.1.0 Received: from ey-out-1920.google.com ([74.125.78.146]:37913) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NMYFz-0006gm-Kl for emacs-pretest-bug@gnu.org; Sun, 20 Dec 2009 21:44:23 -0500 Received: by ey-out-1920.google.com with SMTP id 4so1263231eyg.34 for ; Sun, 20 Dec 2009 18:44:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:content-type; bh=SNistCkHaUmBAuItgU83husIWsi1RzfX9ajXLf87xLI=; b=xPhcF0+7X5cYV32PeCoYDhHK8QnSzudkCeIyoL7IcOOuo2t+qnw/Lg/1fr4bmd2H2K I8ym6OdKW5QsCXvyHE+rpGpbnxGAfMqIheNUU0oRxacpolxOlCCF3h4DvICyRDzpZxCo J7BtE5r4zNSQuyBzOeAwlk5tThbdbtHrSJttA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=enBIAbF8pUNVqrHpdj8uS1vz+33BAFZnP9ZStUrus1KyQc6+AOQlBuX/HumGAd+WZT Ow4rs3o7ZddssCm44aTCeRhy3+VHk3Zx8JX38NxB/Ev8M/A3sk/6BnzQiqXM1pCSLw/B SXn2EJk8ZLrHyCLfBZhx2KVyiC8pdenuOlSAM= MIME-Version: 1.0 Received: by 10.216.90.209 with SMTP id e59mr2235514wef.193.1261363461807; Sun, 20 Dec 2009 18:44:21 -0800 (PST) Date: Sun, 20 Dec 2009 23:44:21 -0300 Message-ID: <9de1a5ef0912201844r45f00f26s82560a57251524d0@mail.gmail.com> Subject: 23.1.90; Wrong prompt in term From: Fabian Ezequiel Gallina To: emacs-pretest-bug@gnu.org Content-Type: text/plain; charset=ISO-8859-1 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Sun, 20 Dec 2009 22:23:08 -0500 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 In emacs 23.1 when I use M-x term the prompt is rendered correctly to whatever is defined on the PS1 environment variable. But in 23.1.90.1 it prompts whatever is defined in the PS1 but also before that, it prompts 0;@:. The steps to reproduce it are quite simple: emacs -Q M-x term The prompt is rendered like this: 0;fgallina@cuca:~/Builds/emacs[fgallina@cuca emacs]$ Since my PS1 is set to PS1='[\u@\h \W]\$ ' the expected result is: [fgallina@cuca emacs]$ In GNU Emacs 23.1.90.1 (x86_64-unknown-linux-gnu, GTK+ Version 2.18.5) of 2009-12-20 on cuca Windowing system distributor `The X.Org Foundation', version 11.0.10703901 Important settings: value of $LC_ALL: nil value of $LC_COLLATE: nil value of $LC_CTYPE: nil value of $LC_MESSAGES: nil value of $LC_MONETARY: nil value of $LC_NUMERIC: nil value of $LC_TIME: nil value of $LANG: es_AR.UTF-8 value of $XMODIFIERS: nil locale-coding-system: utf-8-unix default enable-multibyte-characters: t Major mode: Fundamental 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 blink-cursor-mode: t global-auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t Recent input: M-x t e r m l s M-c M-x C-c b M-x r e m p o p o r Recent messages: For information about GNU Emacs and the GNU system, type C-h C-a. Making completion list... Load-path shadows: None found. Features: (shadow sort mail-extr message sendmail regexp-opt 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 emacsbug help-mode easymenu view term disp-table ehelp electric ring 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) ------------=_1262028542-26543-0 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 5255-done) by debbugs.gnu.org; 28 Dec 2009 19:28:34 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NPLGb-0006to-P5 for submit@debbugs.gnu.org; Mon, 28 Dec 2009 14:28:33 -0500 Received: from colin-baker-v0.ics.uci.edu ([128.195.1.153]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NPLGZ-0006tj-Sp for 5255-done@debbugs.gnu.org; Mon, 28 Dec 2009 14:28:32 -0500 Received: from godzilla.ics.uci.edu (godzilla.ics.uci.edu [128.195.10.101]) by colin-baker-v0.ics.uci.edu (8.13.8/8.13.8) with ESMTP id nBSJSLrs028492 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 28 Dec 2009 11:28:21 -0800 Received: (from dann@localhost) by godzilla.ics.uci.edu (8.13.8+Sun/8.13.6/Submit) id nBSJSLSU012776; Mon, 28 Dec 2009 11:28:21 -0800 (PST) Date: Mon, 28 Dec 2009 11:28:21 -0800 (PST) Message-Id: <200912281928.nBSJSLSU012776@godzilla.ics.uci.edu> From: Dan Nicolaescu To: Fabian Ezequiel Gallina Subject: Re: bug#5255: 23.1.90; Wrong prompt in term References: <9de1a5ef0912201844r45f00f26s82560a57251524d0@mail.gmail.com> <200912221438.nBMEc4YS025361@godzilla.ics.uci.edu> <9de1a5ef0912220652s2e5d1982x20a49f4c5928f044@mail.gmail.com> <200912221513.nBMFDG8E025776@godzilla.ics.uci.edu> <9de1a5ef0912220725v7b179283tba7a0085ccfa194@mail.gmail.com> <200912221544.nBMFio58026144@godzilla.ics.uci.edu> <9de1a5ef0912272111y2a2ae289jc4fff186396bbabf@mail.gmail.com> X-Debbugs-No-Ack: yes In-Reply-To: <9de1a5ef0912272111y2a2ae289jc4fff186396bbabf@mail.gmail.com> (Fabian Ezequiel Gallina's message of "Mon, 28 Dec 2009 02:11:44 -0300") Lines: 26 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-ICS-MailScanner-Information: Please send mail to helpdesk@ics.uci.edu or more information X-ICS-MailScanner-ID: nBSJSLrs028492 X-ICS-MailScanner: Found to be clean X-ICS-MailScanner-SpamCheck: not spam, SpamAssassin (not cached, score=-1.44, required 5, autolearn=disabled, ALL_TRUSTED -1.44) X-ICS-MailScanner-From: dann@godzilla.ics.uci.edu X-Spam-Status: No X-Spam-Score: -2.2 (--) X-Debbugs-Envelope-To: 5255-done Cc: 5255-done@debbugs.gnu.org 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: -2.4 (--) Fabian Ezequiel Gallina writes: > 2009/12/22 Dan Nicolaescu : > > > > This is an xterm specific escape sequence, most likely due to a bad > > setup, you'll get the same problem if you use a vt100 terminal for > > example. > > So this is not a term.el problem. > > > > Thanks for the explanation, I just added this to my .bashrc and > everything started to work fine again: I am closing this bug, it's not a bug in term.el > if [[ $TERM =~ ^xterm ]]; > then > TERM=xterm-256color Changing the value of TERM is a bad idea, unless you know exactly what you are doing. > PROMPT_COMMAND='echo -ne "\033]0;${USER}@${HOSTNAME%%.*}:${PWD/$HOME/~}\007"' Using PROMPT_COMMAND is not a good idea, the same thing can be done with just setting the prompt. ------------=_1262028542-26543-0--