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#10319: 24.0.92; doc string of `file-remote-p' Date: Mon, 19 Dec 2011 09:40:19 +0100 Message-ID: <87bor5eyz0.fsf@gmx.de> References: <87wr9uuvn3.fsf@gmx.de> <1C247F238CC24F6F9A0A3D077D3E09FE@us.oracle.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1324284087 28889 80.91.229.12 (19 Dec 2011 08:41:27 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 19 Dec 2011 08:41:27 +0000 (UTC) Cc: 10319@debbugs.gnu.org To: "Drew Adams" Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Dec 19 09:41:20 2011 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1RcYmd-0004FI-SR for geb-bug-gnu-emacs@m.gmane.org; Mon, 19 Dec 2011 09:41:19 +0100 Original-Received: from localhost ([::1]:39044 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RcYmd-0006bL-F3 for geb-bug-gnu-emacs@m.gmane.org; Mon, 19 Dec 2011 03:41:19 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:56492) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RcYmW-0006WZ-JZ for bug-gnu-emacs@gnu.org; Mon, 19 Dec 2011 03:41:18 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RcYmV-0002Yd-JD for bug-gnu-emacs@gnu.org; Mon, 19 Dec 2011 03:41:12 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:42926) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RcYmV-0002YY-HY for bug-gnu-emacs@gnu.org; Mon, 19 Dec 2011 03:41:11 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1RcYoI-0005rc-Cl for bug-gnu-emacs@gnu.org; Mon, 19 Dec 2011 03:43:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Michael Albinus Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 19 Dec 2011 08:43:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 10319 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 10319-submit@debbugs.gnu.org id=B10319.132428414022491 (code B ref 10319); Mon, 19 Dec 2011 08:43:02 +0000 Original-Received: (at 10319) by debbugs.gnu.org; 19 Dec 2011 08:42:20 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RcYnb-0005qi-HF for submit@debbugs.gnu.org; Mon, 19 Dec 2011 03:42:20 -0500 Original-Received: from mailout-de.gmx.net ([213.165.64.22]) by debbugs.gnu.org with smtp (Exim 4.69) (envelope-from ) id 1RcYnY-0005qY-5W for 10319@debbugs.gnu.org; Mon, 19 Dec 2011 03:42:18 -0500 Original-Received: (qmail invoked by alias); 19 Dec 2011 08:40:22 -0000 Original-Received: from p57BB978C.dip0.t-ipconnect.de (EHLO detlef.gmx.de) [87.187.151.140] by mail.gmx.net (mp056) with SMTP; 19 Dec 2011 09:40:22 +0100 X-Authenticated: #3708877 X-Provags-ID: V01U2FsdGVkX18OCnBLTXsORjPyv/3b+dzzcCrAN2UdWfhAbz+hAm 9yXudfjoXr6VA/ In-Reply-To: <1C247F238CC24F6F9A0A3D077D3E09FE@us.oracle.com> (Drew Adams's message of "Sun, 18 Dec 2011 07:02:53 -0800") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.92 (gnu/linux) X-Y-GMX-Trusted: 0 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Mon, 19 Dec 2011 03:43:02 -0500 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) 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:55056 Archived-At: "Drew Adams" writes: > Do you just want to say that `file-remote-p' never opens > a new connection (i.e., a connection that is not already > established/open)? Yes. > If so, let's just say that: It never opens a new remote > connection. It can only reuse a connection that is > already open. Sounds OK to me. > I understand, and will try to propose something, once I > understand what we're really trying to say. Can the handler > establish a _new_ connection? If so, then `file-remote-p' > can do so. If not, then can't we just say that > `file-remote-p' never establishes (opens) a new connection? It is a promise to libraries using `file-remote-p'. It is guaranteed that the function call is cheap, and that it could be used here and there w/o remarkable overhead. It is also an implementation hint. Any handler that provides an own implementation of `file-remote-p' shall behave like this. `tramp-handle-file-remote-p' and `ange-ftp-file-remote-p' do so. As a consequence, the result might differ whether a connection is already open, or not. If the connection is not established yet, we get (file-remote-p "/ssh::" 'localname) => "" If there is an established connection, we see (file-remote-p "/ssh::" 'localname) => "/home/albinus" Best regards, Michael.