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: Wed, 30 Jan 2008 20:50:29 +0100 Message-ID: <8763xbf5yy.fsf@gmx.de> References: <871w844yff.fsf@gmx.de> <87bq781bf7.fsf@gmx.de> <86zlun5mg0.fsf@lola.quinscape.zz> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1201722398 21229 80.91.229.12 (30 Jan 2008 19:46:38 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 30 Jan 2008 19:46:38 +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 Wed Jan 30 20:46:55 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 1JKItS-0005uF-KT for ged-emacs-devel@m.gmane.org; Wed, 30 Jan 2008 20:46:46 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JKIt1-0006O9-B9 for ged-emacs-devel@m.gmane.org; Wed, 30 Jan 2008 14:46:19 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JKIsw-0006O4-Vi for emacs-devel@gnu.org; Wed, 30 Jan 2008 14:46:15 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JKIsv-0006Nh-Fd for emacs-devel@gnu.org; Wed, 30 Jan 2008 14:46:14 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JKIsv-0006Ne-8A for emacs-devel@gnu.org; Wed, 30 Jan 2008 14:46:13 -0500 Original-Received: from mail.gmx.net ([213.165.64.20]) by monty-python.gnu.org with smtp (Exim 4.60) (envelope-from ) id 1JKIsu-0001wp-Hc for emacs-devel@gnu.org; Wed, 30 Jan 2008 14:46:12 -0500 Original-Received: (qmail invoked by alias); 30 Jan 2008 19:46:11 -0000 Original-Received: from p57A22E0F.dip0.t-ipconnect.de (EHLO arthur.local) [87.162.46.15] by mail.gmx.net (mp037) with SMTP; 30 Jan 2008 20:46:11 +0100 X-Authenticated: #3708877 X-Provags-ID: V01U2FsdGVkX1/jCFFW/kHjbArRemAptwEog6MzJK4wS/QeUKgVzr L+977sl2wGrhfg In-Reply-To: (Stefan Monnier's message of "Wed, 30 Jan 2008 12:52:47 -0500") User-Agent: Gnus/5.110007 (No Gnus v0.7) Emacs/23.0.50 (gnu/linux) X-Y-GMX-Trusted: 0 X-detected-kernel: by monty-python.gnu.org: Linux 2.6, seldom 2.4 (older, 4) 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:87793 Archived-At: Stefan Monnier writes: > I don't see the problem: Tramp should simply always return nil. > That's fine. The code (doc-view) will than fallback on the use of > file-local-copy to pass the file's content to the local process. I'm really sorry, Stefan, but in this case I'm too stupid to see what's the value of this function. In the remote case it shall always return nil - this could be checked by (not (file-remote-p file)). What does the function return the local case? Just the file name, expanded? Maybe it helps to see your use case in doc-view.el? > Stefan Best regards, Michael.