From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Noah Lavine Newsgroups: gmane.emacs.devel Subject: Re: SCPC Detection Program Date: Wed, 14 Apr 2010 19:57:39 -0400 Message-ID: References: <8739z26jxo.fsf@gmx.de> <87iq7weaz4.fsf@gmx.de> <8739z0wim6.fsf@gmx.de> <877hobrrsc.fsf@gmx.de> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: dough.gmane.org 1271289474 9194 80.91.229.12 (14 Apr 2010 23:57:54 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 14 Apr 2010 23:57:54 +0000 (UTC) Cc: tramp-devel@gnu.org, emacs-devel@gnu.org To: Michael Albinus Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Apr 15 01:57:51 2010 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.69) (envelope-from ) id 1O2CSt-0002qD-8l for ged-emacs-devel@m.gmane.org; Thu, 15 Apr 2010 01:57:51 +0200 Original-Received: from localhost ([127.0.0.1]:40537 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O2CSs-0000OE-JF for ged-emacs-devel@m.gmane.org; Wed, 14 Apr 2010 19:57:50 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1O2CSl-0000Jh-G6 for emacs-devel@gnu.org; Wed, 14 Apr 2010 19:57:43 -0400 Original-Received: from [140.186.70.92] (port=57485 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O2CSj-0000HC-Tm for emacs-devel@gnu.org; Wed, 14 Apr 2010 19:57:42 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1O2CSi-0001qH-LW for emacs-devel@gnu.org; Wed, 14 Apr 2010 19:57:41 -0400 Original-Received: from mail-yw0-f197.google.com ([209.85.211.197]:46944) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O2CSi-0001q8-IS; Wed, 14 Apr 2010 19:57:40 -0400 Original-Received: by ywh35 with SMTP id 35so403907ywh.24 for ; Wed, 14 Apr 2010 16:57:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:received:message-id:subject:from:to:cc:content-type; bh=YUkOVF6H0hcxp3lSiN9oq0kV9r82wouqqkO6YgWfeWA=; b=M9vycn8iZ05GVwBzmVRZVaW09SjM1RLiHF7qdChkQ4QbZa6atDVwc1KJXB7w1TrAry oCkrAnSoQ3/eBJrHgEpXpg9wv/EI6xYNZ2bcrP8qh0GWqudlf2W+jCPx/lSC2gZDBj5i Nn9ZFb/zp70zsiniubz/puiIaHCYPav8rrpU0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=GsEi1t7ucIPujiHLYRJJvMtXn0I19n1gFRaCNSGy5AB/kioqsjrzBn9zze6+KDMVDm 9YEj8egc2keeDynX0I/FzA+ET9DKtfn3cCK0hYnZop4E6ra5Omc7WQcq+nVTleOwFgAQ Araz1wya5VxxWIDSYXAIXcRE3z1bPUQ/9Q2lM= Original-Received: by 10.231.37.2 with HTTP; Wed, 14 Apr 2010 16:57:39 -0700 (PDT) In-Reply-To: <877hobrrsc.fsf@gmx.de> Original-Received: by 10.150.119.37 with SMTP id r37mr7394176ybc.341.1271289459245; Wed, 14 Apr 2010 16:57:39 -0700 (PDT) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) 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:123675 Archived-At: Hi Michael, That sounds excellent. I'll try to submit a patch soon to implement that. Is it correct that patches like that should go to bug-gnu-emacs@gnu.org? Noah On Tue, Apr 13, 2010 at 5:01 PM, Michael Albinus wrote: > Noah Lavine writes: > >> Hi Michael, > > Hi Noah, > >> I was thinking about it, and the help string idea does seem better >> than version numbers, especially if it turns out that several >> different SSH implementations use similarly-formatted help strings. I >> think I will check the formatting of a few different version and help >> strings before coding more. >> >> However, I thought of an alternate possibility. What if tramp first >> saves the version string of ssh, then tries a connection with >> ControlMaster to see if it works, and then remembers whether this >> worked or not? Then it would choose a method for future connections >> based on the results of the test until the version string changed, at >> which point it would experiment again. >> >> That way it would have to run a test connection only when the user >> updated their ssh installation, which seems infrequent enough to be >> reasonable, and it would have the advantage that we wouldn't have to >> keep any sort of whitelist of ssh programs or help string formats. > > I think it is not worth the hassle to let a connection fail, and to > apply book-keeping of ssh versions. Ted's proposal seems to fit best, I > believe. > >> Noah > > Best regards, Michael. >