From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Daniel Colascione Newsgroups: gmane.emacs.devel Subject: Re: trunk r114834: Tweak Tramp method definition syntax to allow overriding check for localhost-only methods Date: Tue, 29 Oct 2013 00:15:29 -0700 Message-ID: <526F6091.5000307@dancol.org> References: <8761sgy2lj.fsf@gmx.de> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1383032142 11076 80.91.229.3 (29 Oct 2013 07:35:42 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 29 Oct 2013 07:35:42 +0000 (UTC) Cc: emacs-devel@gnu.org To: Michael Albinus Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Oct 29 08:35:46 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 1Vb3q2-00028G-LW for ged-emacs-devel@m.gmane.org; Tue, 29 Oct 2013 08:35:42 +0100 Original-Received: from localhost ([::1]:45038 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vb3q2-0001t3-Af for ged-emacs-devel@m.gmane.org; Tue, 29 Oct 2013 03:35:42 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:57583) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vb3ps-0001rx-Cn for emacs-devel@gnu.org; Tue, 29 Oct 2013 03:35:38 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Vb3pl-0004R0-PU for emacs-devel@gnu.org; Tue, 29 Oct 2013 03:35:32 -0400 Original-Received: from dancol.org ([2600:3c01::f03c:91ff:fedf:adf3]:47544) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vb3Wg-0006OR-JI for emacs-devel@gnu.org; Tue, 29 Oct 2013 03:15:42 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=dancol.org; s=x; h=Content-Transfer-Encoding:Content-Type:In-Reply-To:References:Subject:CC:To:MIME-Version:From:Date:Message-ID; bh=I633qOPnfocRSXvbEhpbktYAQxBY/Z9UHS6uMjmK1/w=; b=hUm7piIiFlszPe3LyZRrgZSfz+UVaY20jei/s/HuVE8bzBgr7ymCBNJss6sNoGz1cleKef5IBGsMYbXZmBScpED9LTXOl58W87CaY2BIk3QB1ezIZjyfR51939WjWRe0H+8EtPL/wO3uZfJsHBG7E94nkD3DhT0+KZuUG+KFEGG43memCivQHB5YpBei1HT5osBsx3kwYTsRVKGXx+9MUFouypSrLhfRa7rHzKwe36+QkJTGa8P5vmJZQxwfc1W2WES7hNt5Hq67vK05TvAhh4W+eEwNvuiA05ayes9qAbPgSQJUQFeRw4MY9SbWiO12OGLY9YftKbKo2HRuBskp2g==; Original-Received: from c-69-181-250-160.hsd1.ca.comcast.net ([69.181.250.160] helo=[10.0.0.8]) by dancol.org with esmtpsa (TLS1.0:DHE_RSA_CAMELLIA_256_CBC_SHA1:256) (Exim 4.80) (envelope-from ) id 1Vb3Wa-0008Fx-FG; Tue, 29 Oct 2013 00:15:36 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.0 In-Reply-To: <8761sgy2lj.fsf@gmx.de> X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2600:3c01::f03c:91ff:fedf:adf3 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:164612 Archived-At: On 10/29/2013 12:10 AM, Michael Albinus wrote: > Daniel Colascione writes: > > Hi Daniel, > >> + * `tramp-hostname-checker' >> + This is a function that tramp calls while setting >> + up a connection. It is called with three arguments: >> + the target, the host, and the method description. If >> + the hostname is unacceptable, this function should signal >> + using `tramp-error'. If a method does not provide >> + a value here, then Tramp looks at whether the method's >> + login program uses a \"%h\" parameter. If not, then Tramp >> + requires that the given hostname match `tramp-local-host-regexp'. > > I don't follow. What is this change good for? Do you have a use case? > I do locally --- a custom tramp method that connects to just one host and therefore doesn't refer to %h --- but more generally, it seems odd to tie the local- versus remote-capable distinction to just referring to %h.