From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Michael Albinus Newsgroups: gmane.emacs.help Subject: Re: tramp trouble with 24.3 Date: Mon, 22 Apr 2013 12:45:17 +0200 Message-ID: <87vc7eq1xe.fsf@gmx.de> References: <877gjyio09.fsf@gmx.de> <8738umimrg.fsf@gmx.de> <874nf2cskm.fsf@gmx.de> <87y5cebc1o.fsf@gmx.de> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1366627543 26639 80.91.229.3 (22 Apr 2013 10:45:43 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 22 Apr 2013 10:45:43 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Neal Becker Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Apr 22 12:45:42 2013 Return-path: Envelope-to: geh-help-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 1UUEFf-0005GB-SA for geh-help-gnu-emacs@m.gmane.org; Mon, 22 Apr 2013 12:45:39 +0200 Original-Received: from localhost ([::1]:43130 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UUEFe-0006Io-W4 for geh-help-gnu-emacs@m.gmane.org; Mon, 22 Apr 2013 06:45:39 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:50921) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UUEFR-0006Ig-OS for help-gnu-emacs@gnu.org; Mon, 22 Apr 2013 06:45:27 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UUEFQ-0002ZT-1J for help-gnu-emacs@gnu.org; Mon, 22 Apr 2013 06:45:25 -0400 Original-Received: from mout.gmx.net ([212.227.15.18]:54635) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UUEFP-0002ZH-NO for help-gnu-emacs@gnu.org; Mon, 22 Apr 2013 06:45:23 -0400 Original-Received: from mailout-de.gmx.net ([10.1.76.30]) by mrigmx.server.lan (mrigmx002) with ESMTP (Nemesis) id 0MCvpV-1ULk4P1V6x-009gBf for ; Mon, 22 Apr 2013 12:45:22 +0200 Original-Received: (qmail invoked by alias); 22 Apr 2013 10:45:21 -0000 Original-Received: from p57BB8C3C.dip0.t-ipconnect.de (EHLO detlef.gmx.de) [87.187.140.60] by mail.gmx.net (mp030) with SMTP; 22 Apr 2013 12:45:21 +0200 X-Authenticated: #3708877 X-Provags-ID: V01U2FsdGVkX19G/C0XVJBG3It0XcUJWSJB2p7++biv/jhvhRSRQ4 MaSjzrdFjMOV/F In-Reply-To: (Neal Becker's message of "Fri, 19 Apr 2013 15:29:02 -0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) X-Y-GMX-Trusted: 0 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4.x-2.6.x [generic] X-Received-From: 212.227.15.18 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:90287 Archived-At: Neal Becker writes: Hi Neal, > Neal Becker wrote: > >> Michael Albinus wrote: >> >>> Neal Becker writes: >>> >>>> This is a linux box talking to a linux box, so if doesn't work for me, I'll >>>> bet I'm not the only one who will/has seen this. >>> >>> Your prompt doesn't look to be the default one. I guess it is >>> customized, isn't it? >>> >>> Best regards, Michael. >> >> No it isn't. Maybe it's cause color prompts are on by default? That's not my >> idea. That's fedora 18. Many people are using Fedora 18, and I haven't seen any other complaint yet. > Also, shell-prompt-pattern is working in shell-mode. In shell mode: > > echo $PS1 > \[\033[01;32m\]\u@\h\[\033[00m\] > \[\033[01;34m\]\W\[\033[00m\]\[\033[1;32m\]\$\[\033[m\] And? Tramp does not use shell-mode. Anyway, this prompt is hard enough to parse. The Tramp manual gives you some hints how to avoid escape sequences, when scripts are accessing your account from remote. > Also, don't forget, the problem is not seen in 24.2 Maybe there was a pattern change in Tramp. As I said, I don't remember, but ... > I used emacs from fedora. Used rpmbuild --rebuild to build the fedora > 20 rpm on > fedora 18. I don't see anything added by the fedora rpm that would change this > prompt regex (but haven't searched exhaustively) Sorry, I don't use Fedore, and I don't understand what you have changed via rpmbuild etc. Anyway, if I could see your complete prompt (including escape sequence), I could try to adapt tramp-shell-prompt-pattern to your needs. The example above is not sufficient, because it does not expand user and host names, and alike. Just run your test case with tramp-verbose 10. There will be traces like --8<---------------cut here---------------start------------->8--- 12:37:39.845362 tramp-accept-process-output (10) # #$ --8<---------------cut here---------------end--------------->8--- (#$ is my prompt). Send those lines as coded attachment, in order not to loose escape sequences. I will analyze them. You could send it directly to me, in order to avoid bit lossages. Best regards, Michael.