From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Michael Albinus Newsgroups: gmane.emacs.devel Subject: Re: testing for a remote file to include file on a Windows mappeddrive Date: Thu, 31 Jan 2008 10:07:54 +0100 Message-ID: References: <871w844yff.fsf@gmx.de> <87bq781bf7.fsf@gmx.de> <86zlun5mg0.fsf@lola.quinscape.zz> <8763xbf5yy.fsf@gmx.de> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1201770452 25588 80.91.229.12 (31 Jan 2008 09:07:32 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 31 Jan 2008 09:07:32 +0000 (UTC) Cc: emacs-devel@gnu.org, rms@gnu.org, drew.adams@oracle.com, jasonr@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Jan 31 10:07:52 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 1JKVOf-0003G9-EP for ged-emacs-devel@m.gmane.org; Thu, 31 Jan 2008 10:07:49 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JKVOE-0006dn-76 for ged-emacs-devel@m.gmane.org; Thu, 31 Jan 2008 04:07:22 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JKVOA-0006di-Jt for emacs-devel@gnu.org; Thu, 31 Jan 2008 04:07:18 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JKVO9-0006dV-4b for emacs-devel@gnu.org; Thu, 31 Jan 2008 04:07:18 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JKVO9-0006dQ-1X for emacs-devel@gnu.org; Thu, 31 Jan 2008 04:07:17 -0500 Original-Received: from mailrelay2.alcatel.de ([194.113.59.96]) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1JKVNx-0001W0-EJ; Thu, 31 Jan 2008 04:07:05 -0500 Original-Received: from slbhab.alcatel.de (slbhab.bln.sel.alcatel.de [149.204.63.218]) by mailrelay2.alcatel.de (8.13.4/8.13.4/ICT) with ESMTP id m0V970p6007440; Thu, 31 Jan 2008 10:07:00 +0100 In-Reply-To: (Stefan Monnier's message of "Wed, 30 Jan 2008 16:33:54 -0500") User-Agent: Gnus/5.1008 (Gnus v5.10.8) Emacs/21.3 (hpux) X-Scanned-By: MIMEDefang 2.51 on 149.204.45.73 X-detected-kernel: by monty-python.gnu.org: Linux 2.4-2.6 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:87843 Archived-At: Stefan Monnier writes: > For the "/:" file-name handler, file-remote-p should return nil, and > unhandled-file-name should return the filename with the "/:" stripped. > For url-handler-mode, the "file://" should not be considered remote > either and unhandled-file-name should return the filename with the > "file://" stripped. I've got it: we were speaking about different functions. You need a function which converts a file name to an argument which can be passed literally to a *local* subprocess. I was speaking about trimming a file name, which can be used then as argument by *any* subprocess, either local, either remote (`process-file' or `start-file-process'). Both functions might be useful. > Stefan Best regards, Michael.