From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Miles Bader Newsgroups: gmane.emacs.devel Subject: Re: tramp Date: 13 Aug 2002 14:52:57 +0900 Sender: emacs-devel-admin@gnu.org Message-ID: References: Reply-To: Miles Bader NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-14 Content-Transfer-Encoding: quoted-printable X-Trace: main.gmane.org 1029218002 18272 127.0.0.1 (13 Aug 2002 05:53:22 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Tue, 13 Aug 2002 05:53:22 +0000 (UTC) Cc: emacs-devel@gnu.org Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 17eUcK-0004kZ-00 for ; Tue, 13 Aug 2002 07:53:20 +0200 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 17eV0h-0003AD-00 for ; Tue, 13 Aug 2002 08:18:31 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10) id 17eUd9-0001xe-00; Tue, 13 Aug 2002 01:54:11 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10) id 17eUc9-0001wg-00 for emacs-devel@gnu.org; Tue, 13 Aug 2002 01:53:09 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10) id 17eUc7-0001wU-00 for emacs-devel@gnu.org; Tue, 13 Aug 2002 01:53:08 -0400 Original-Received: from tyo202.gate.nec.co.jp ([210.143.35.52]) by monty-python.gnu.org with esmtp (Exim 4.10) id 17eUc5-0001vZ-00; Tue, 13 Aug 2002 01:53:06 -0400 Original-Received: from mailgate4.nec.co.jp ([10.7.69.195]) by TYO202.gate.nec.co.jp (8.11.6/3.7W01080315) with ESMTP id g7D5qvM28912; Tue, 13 Aug 2002 14:52:58 +0900 (JST) Original-Received: from mailsv.nec.co.jp (mailgate51.nec.co.jp [10.7.69.196]) by mailgate4.nec.co.jp (8.11.6/3.7W-MAILGATE-NEC) with ESMTP id g7D5qug10152; Tue, 13 Aug 2002 14:52:57 +0900 (JST) Original-Received: from mcsss2.ucom.lsi.nec.co.jp ([10.30.114.133]) by mailsv.nec.co.jp (8.11.6/3.7W-MAILSV-NEC) with ESMTP id g7D5quL27373; Tue, 13 Aug 2002 14:52:56 +0900 (JST) Original-Received: from mcspd15.ucom.lsi.nec.co.jp (mcspd15 [10.30.114.174]) by mcsss2.ucom.lsi.nec.co.jp (8.10.2+Sun/3.7Wlsi_mx_6.0) with ESMTP id g7D5rIs01348; Tue, 13 Aug 2002 14:53:18 +0900 (JST) Original-Received: by mcspd15.ucom.lsi.nec.co.jp (Postfix, from userid 31295) id DD47837C3; Tue, 13 Aug 2002 14:52:57 +0900 (JST) Original-To: Kai.Grossjohann@CS.Uni-Dortmund.DE (Kai =?iso-8859-15?q?Gro=DFjohann?=) System-Type: i686-pc-linux-gnu Blat: Foop In-Reply-To: Original-Lines: 33 Errors-To: emacs-devel-admin@gnu.org X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.0.11 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Emacs development discussions. List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.emacs.devel:6496 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:6496 Kai.Grossjohann@CS.Uni-Dortmund.DE (Kai Gro=DFjohann) writes: > > tramp: Looking for pattern ^\(([^) ]*)\|[^> ]*[>]\)\s-* >=20 > This looks like your shell-prompt-pattern. Is it? Ah, perhaps it is. Since shell-prompt-pattern is basically not used anymor= e, I had forgotten that I had one. However, in this case it's still clearly wrong, since it's not _my_ shell that's being started, but root's. > At this point, Tramp is again waiting for shell-prompt-pattern, and > this shell prompt does not match the regexp above. >=20 > It used to be that Tramp tried to grok some common shell prompts in > addition to shell-prompt-pattern. Maybe I should re-add this feature. I think it _definitely_ should match common shell prompts, as `shell-prompt-pattern' is quite likely to be wrong, for the reasons I gave above: (1) It's not used by shell-mode anymore, so it's going to suffer bit-rot. (2) In many cases, a shell started by tramp will be in a `different context' than a normal user-shell, and so will have a different prompt anyway. Probably it ought to be possible to modify this on a per-connection-type and per-machine basis (but presumably that will be handled by the whizzy config mechanism that will added to address other problems, right?). -Miles --=20 The secret to creativity is knowing how to hide your sources. --Albert Einstein