From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: file-remote-p and its arguments Date: Thu, 31 Jan 2008 09:49:09 -0500 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1201790978 471 80.91.229.12 (31 Jan 2008 14:49:38 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 31 Jan 2008 14:49:38 +0000 (UTC) Cc: emacs-devel@gnu.org To: Michael Albinus Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Jan 31 15:49:54 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 1JKajY-0004EV-Qv for ged-emacs-devel@m.gmane.org; Thu, 31 Jan 2008 15:49:45 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JKaj7-0001e9-Ho for ged-emacs-devel@m.gmane.org; Thu, 31 Jan 2008 09:49:17 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JKaj2-0001bv-Qr for emacs-devel@gnu.org; Thu, 31 Jan 2008 09:49:12 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JKaj1-0001bF-OT for emacs-devel@gnu.org; Thu, 31 Jan 2008 09:49:12 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JKaj1-0001bA-Fp for emacs-devel@gnu.org; Thu, 31 Jan 2008 09:49:11 -0500 Original-Received: from ironport2-out.pppoe.ca ([206.248.154.182]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JKaj1-0001oZ-8F for emacs-devel@gnu.org; Thu, 31 Jan 2008 09:49:11 -0500 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Ao8CADNuoUfO+J95dGdsb2JhbACQKwEwmVmBAA X-IronPort-AV: E=Sophos;i="4.25,285,1199682000"; d="scan'208";a="13448449" Original-Received: from smtp.pppoe.ca ([65.39.196.238]) by ironport2-out.pppoe.ca with ESMTP; 31 Jan 2008 09:49:11 -0500 Original-Received: from pastel.home ([206.248.159.121]) by smtp.pppoe.ca (Internet Mail Server v1.0) with ESMTP id LPC43710; Thu, 31 Jan 2008 09:49:10 -0500 Original-Received: by pastel.home (Postfix, from userid 20848) id B30C88123; Thu, 31 Jan 2008 09:49:09 -0500 (EST) In-Reply-To: (Michael Albinus's message of "Thu, 31 Jan 2008 10:43:21 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.50 (gnu/linux) X-detected-kernel: by monty-python.gnu.org: Genre and OS details not recognized. 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:87863 Archived-At: >> From what I can tell, the `connected' argument is *never* used. > `recentf-keep-default-predicate'. Indeed, thanks, I missed it. > The reasoning is in > I see. It does make sense :-( >> And I have found only one use of the `identification' argument, if >> grep.el where it seems not to be necessary: grep.el passes `host' for >> that argument in order to build a map from hosts to default grep >> commands and arguments, on the assumption that all users on a host will >> have the same grep commands in their PATH. I think this "optimization" >> in grep.el (where they determine the grep defaults once per host instead >> of once per remote access method (typically a triplet of >> protocol/user/host)) is of no importance and is even not 100% reliable. > It's less than an "optimization", it is just a kludge to let grep > work also on remote hosts. The decision might be to either complete > the implementation, or to throw away this feature. This one I do not understand: using (file-remote-p file) for this purpose would work just as well as (file-remote-p file 'host), wouldn't it? Stefan