From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Andrew W. Nosenko" Newsgroups: gmane.emacs.devel Subject: Re: [PATCH] tramp: Avoid "Args out of range" error Date: Fri, 1 Feb 2013 21:47:39 +0200 Message-ID: References: <87k3qrluhk.fsf@gmx.de> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: ger.gmane.org 1359748513 14098 80.91.229.3 (1 Feb 2013 19:55:13 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 1 Feb 2013 19:55:13 +0000 (UTC) Cc: emacs-devel@gnu.org To: Michael Albinus Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Feb 01 20:55:33 2013 Return-path: Envelope-to: ged-emacs-devel@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 1U1Mhw-0002HS-8Y for ged-emacs-devel@m.gmane.org; Fri, 01 Feb 2013 20:55:32 +0100 Original-Received: from localhost ([::1]:48646 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U1Mhd-0000ES-Rh for ged-emacs-devel@m.gmane.org; Fri, 01 Feb 2013 14:55:13 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:55819) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U1Mdn-0007BN-1E for emacs-devel@gnu.org; Fri, 01 Feb 2013 14:55:11 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1U1MaK-0006ag-4R for emacs-devel@gnu.org; Fri, 01 Feb 2013 14:51:14 -0500 Original-Received: from mail-vc0-f171.google.com ([209.85.220.171]:61421) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U1MaK-0006aJ-04 for emacs-devel@gnu.org; Fri, 01 Feb 2013 14:47:40 -0500 Original-Received: by mail-vc0-f171.google.com with SMTP id p1so2689938vcq.2 for ; Fri, 01 Feb 2013 11:47:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:in-reply-to:references:date:message-id :subject:from:to:cc:content-type; bh=/YUOQr2MvyzKi0IuE9ym366kbXBduslh+rea8wp5T4o=; b=0en57nqheu+tF2vQYElOGsfMJbhA9inb8wSKXw75HYY2eBLPP04U4qFXnmrCRJUNep uQrk8jY0we5jDqzd+eZHZ08oNrJJ07eFy6s0hpQlP8dWKdjBg2cDpjsI8th/++x0MJpB JDxri0SwYkePIyPWbEWgqIlwAwVcgC75Rk0Eg53FbMUlCGocEIcEBG/j4HRuxgec0xH4 D57dX5Y9m8gp2rXusJdkZoP81V3RW9RNOoEN3qiOMIz9oZNn2zsdgdWq/SRwLh0QOxdl H0CUSrDRWNmD+IB118Ixdqp7rz9etPAoxTU66v4kH/f1XT7RKqssajsfVK3EsAlSZ9bk chQA== X-Received: by 10.58.19.232 with SMTP id i8mr8164389vee.53.1359748059395; Fri, 01 Feb 2013 11:47:39 -0800 (PST) Original-Received: by 10.58.171.5 with HTTP; Fri, 1 Feb 2013 11:47:39 -0800 (PST) In-Reply-To: <87k3qrluhk.fsf@gmx.de> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [fuzzy] X-Received-From: 209.85.220.171 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:156769 Archived-At: On Fri, Feb 1, 2013 at 9:11 PM, Michael Albinus wrote: > "Andrew W. Nosenko" writes: > > Hi Andrew, > >> Attached patch for tramp.el avoids the "Args out of range" error inside >> tramp-check-for-regexp. >> >> Such error occurs, for example, when try to compile through tramp with >> FreeBSD-9.1 as remote host. > > Thanks for the patch, it makes sense. But I believe it is incorrect, it > should be > > (tramp-compat-funcall > 'buffer-substring-no-properties > (point-min) > (min (+ (point-min) tramp-echo-mark-marker-length) (point-max)))))) > Thanks for catch! -- Andrew W. Nosenko