From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Peter Dyballa Newsgroups: gmane.emacs.help Subject: Re: chdir output incorrect for prompt Date: Tue, 25 Apr 2006 18:01:37 +0200 Message-ID: <20F041F3-309D-4109-B7A5-61189FA43FF4@Web.DE> References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 (Apple Message framework v749.3) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1145981210 6059 80.91.229.2 (25 Apr 2006 16:06:50 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 25 Apr 2006 16:06:50 +0000 (UTC) Cc: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Apr 25 18:06:47 2006 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1FYQ3a-0007Gv-Vn for geh-help-gnu-emacs@m.gmane.org; Tue, 25 Apr 2006 18:06:31 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FYQ3a-0000Vw-IC for geh-help-gnu-emacs@m.gmane.org; Tue, 25 Apr 2006 12:06:30 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1FYPz3-0005iv-Dv for help-gnu-emacs@gnu.org; Tue, 25 Apr 2006 12:01:49 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1FYPz0-0005hj-Ao for help-gnu-emacs@gnu.org; Tue, 25 Apr 2006 12:01:48 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FYPyz-0005hX-PH for help-gnu-emacs@gnu.org; Tue, 25 Apr 2006 12:01:46 -0400 Original-Received: from [217.72.192.234] (helo=fmmailgate03.web.de) by monty-python.gnu.org with esmtp (Exim 4.52) id 1FYQ1T-0001nB-Mt for help-gnu-emacs@gnu.org; Tue, 25 Apr 2006 12:04:20 -0400 Original-Received: by fmmailgate03.web.de (8.12.6/8.12.6/webde Linux 0.7) with ESMTP id k3PG1flD027815; Tue, 25 Apr 2006 18:01:41 +0200 Original-Received: from [87.193.4.200] (helo=[192.168.1.2]) by smtp08.web.de with asmtp (TLSv1:RC4-SHA:128) (WEB.DE 4.107 #108) id 1FYPyv-0006X0-00; Tue, 25 Apr 2006 18:01:41 +0200 In-Reply-To: X-Priority: 3 X-Image-Url: http://homepage.mac.com/sparifankal/.cv/thumbs/me.thumbnail Original-To: "Jim" X-Mailer: Apple Mail (2.749.3) X-Sender: Peter_Dyballa@web.de X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:34647 Archived-At: Am 25.04.2006 um 16:28 schrieb Jim: > I have export PS1='($PWD)> ' for my prompt on linux and it works > fine in > my shell displaying > the path after a 'cd' command. However in emacs after a 'cd' > command the > output has junk > in the path: ^[]1:Test^G^[]2;Test ???@cc99^G^[]3:/r/... Emacs' shell buffer does not expect these ANSI codes. Maybe this code for your .emacs corrects the shell buffer's behaviour: (add-hook 'shell-mode-hook (lambda () ; (make-local-variable 'ansi-color-for-comint-mode) (ansi-color-for-comint-mode-on))) If this fails you can set in ~/.emacs_bash a different value for PS1 in Emacs' shell buffer, one that does not generate ANSI codes. -- Greetings Pete A lot of us are working harder than we want, at things we don't like to do. Why? ...In order to afford the sort of existence we don't care to live. -- Bradford Angier