From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Herbert Euler Newsgroups: gmane.emacs.devel Subject: RE: Recent changes on tramp introduce a bug Date: Wed, 23 Jan 2008 11:07:31 +0800 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="gb2312" Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1201057669 21493 80.91.229.12 (23 Jan 2008 03:07:49 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 23 Jan 2008 03:07:49 +0000 (UTC) Cc: emacs-devel@gnu.org To: Michael Albinus Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Jan 23 04:08:07 2008 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1JHVyA-0007OE-Nk for ged-emacs-devel@m.gmane.org; Wed, 23 Jan 2008 04:08:06 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JHVxk-0003VL-Uo for ged-emacs-devel@m.gmane.org; Tue, 22 Jan 2008 22:07:40 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JHVxd-0003Rk-QB for emacs-devel@gnu.org; Tue, 22 Jan 2008 22:07:33 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JHVxc-0003Qy-W4 for emacs-devel@gnu.org; Tue, 22 Jan 2008 22:07:33 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JHVxc-0003QY-Qz for emacs-devel@gnu.org; Tue, 22 Jan 2008 22:07:32 -0500 Original-Received: from bay0-omc2-s29.bay0.hotmail.com ([65.54.246.165]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JHVxc-0000dW-Dh for emacs-devel@gnu.org; Tue, 22 Jan 2008 22:07:32 -0500 Original-Received: from BAY143-W45 ([65.55.154.80]) by bay0-omc2-s29.bay0.hotmail.com with Microsoft SMTPSVC(6.0.3790.3959); Tue, 22 Jan 2008 19:07:31 -0800 X-Originating-IP: [216.145.54.15] Importance: Normal In-Reply-To: X-OriginalArrivalTime: 23 Jan 2008 03:07:31.0352 (UTC) FILETIME=[17E15180:01C85D6D] X-detected-kernel: by monty-python.gnu.org: Windows 2000 SP4, XP SP1+ X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:87353 Archived-At: > Hi, > >> The following changes to `tramp-wait-for-output' on net/tramp.el >> introduce a bug: >> >> The old code uses (forward-line -2), the new code uses >> (re-search-backward regexp nil t). > > IIRC, (forward-line -2) results in an error if a command on the remote > host returns a result without a trailing newline. That's why Tramp > tries to remove now exactly the trailing prompt, and nothing else. I see. That is a real bad feature among different implementations. :( > Could you, please, check whether the appended patch works for you? It works. Thank you very much! :D Regards, Guanpeng Xu _________________________________________________________________ Express yourself instantly with MSN Messenger! Download today it's FREE! http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/