From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Michael Albinus Newsgroups: gmane.emacs.bugs Subject: bug#14808: 24.3; Tramp hangs on unmatched prompt pattern Date: Mon, 15 Jul 2013 14:15:59 +0200 Message-ID: <87vc4cdnnk.fsf@gmx.de> References: <87wqoyo3vl.fsf@gmx.de> <87ip0h76v7.fsf@gmx.de> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1373890632 25030 80.91.229.3 (15 Jul 2013 12:17:12 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 15 Jul 2013 12:17:12 +0000 (UTC) Cc: 14808-done@debbugs.gnu.org To: Chris Thompson Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Jul 15 14:17:13 2013 Return-path: Envelope-to: geb-bug-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 1UyhiI-0002wu-3Z for geb-bug-gnu-emacs@m.gmane.org; Mon, 15 Jul 2013 14:17:10 +0200 Original-Received: from localhost ([::1]:37147 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UyhiH-0005uk-59 for geb-bug-gnu-emacs@m.gmane.org; Mon, 15 Jul 2013 08:17:09 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:60980) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UyhiC-0005uT-TT for bug-gnu-emacs@gnu.org; Mon, 15 Jul 2013 08:17:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UyhiB-0007s3-Np for bug-gnu-emacs@gnu.org; Mon, 15 Jul 2013 08:17:04 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:32792) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UyhiB-0007rq-Ln for bug-gnu-emacs@gnu.org; Mon, 15 Jul 2013 08:17:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1UyhiB-0000tO-0s for bug-gnu-emacs@gnu.org; Mon, 15 Jul 2013 08:17:03 -0400 Resent-From: Michael Albinus Original-Sender: "Debbugs-submit" Resent-To: bug-gnu-emacs@gnu.org Resent-Date: Mon, 15 Jul 2013 12:17:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 14808 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Mail-Followup-To: 14808@debbugs.gnu.org, michael.albinus@gmx.de, teaforthecat@gmail.com Original-Received: via spool by 14808-done@debbugs.gnu.org id=D14808.13738905753325 (code D ref 14808); Mon, 15 Jul 2013 12:17:01 +0000 Original-Received: (at 14808-done) by debbugs.gnu.org; 15 Jul 2013 12:16:15 +0000 Original-Received: from localhost ([127.0.0.1]:55338 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1UyhhO-0000rY-Gt for submit@debbugs.gnu.org; Mon, 15 Jul 2013 08:16:14 -0400 Original-Received: from mout.gmx.net ([212.227.15.18]:52770) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1UyhhI-0000qx-PD for 14808-done@debbugs.gnu.org; Mon, 15 Jul 2013 08:16:09 -0400 Original-Received: from detlef.gmx.de ([93.202.51.175]) by mail.gmx.com (mrgmx101) with ESMTPS (Nemesis) id 0LyzW8-1U3HjW09z6-014GUc; Mon, 15 Jul 2013 14:16:02 +0200 In-Reply-To: (Chris Thompson's message of "Mon, 15 Jul 2013 06:38:02 -0500") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) X-Provags-ID: V03:K0:fAgcluHAxr/xnji5k2e0kwbZCh9rxteAMCjTUaabDucuqe1yGIY 98MIW6ToNSNvXQYlNViNvpmpiu42Qsk/Jbv2YhUvMQqr0hOCqbIiqfS8bZrb4NnFgVx/eQ4 BFJqI7uwHNtIftrPNs1xqpuMiAW1tv1ob8johtEnCYjOWtetMwUl/vfRz0T/BMZf/zZNt7I Md0fiV3ZUrkE91pJbZFhg== X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:76360 Archived-At: Chris Thompson writes: Hi Chris, > I successfully replicated your work. I see the message in the > minibuffer: [...] That's the intention of my change. You shall get more information where to look for. > The value of tramp-shell-prompt-pattern: > "\\(?:^\\|\n \\)[^]#$%>\n]*#?[]#$%>] *\\(\\[[0-9;]*[a-zA-Z] *\\)*" > > When I add a colon to the list of ending characters in that regex, > which would be #:$%>, then opening the file with sudo works > beautifully. (because of the PS1 value which is set in > .../root/.bashrc) We have kept out the trailing colon in `tramp-shell-prompt-pattern', because often you get information or requests during login with such a trailing colon, which should not be recognized as prompt. Like this: Password: So from my pov, this bug is resolved. I recommend you to use a prompt w/o a trailing colon. Or you modify `tramp-shell-prompt-pattern', as you have done. > Thanks, > Chris Best regards, Michael.