[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: testing for a remote file to include file on a Windows mappeddrive
From: |
Stefan Monnier |
Subject: |
Re: testing for a remote file to include file on a Windows mappeddrive |
Date: |
Wed, 30 Jan 2008 16:33:54 -0500 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.0.50 (gnu/linux) |
>> 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?
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.
> Maybe it helps to see your use case in doc-view.el?
Given a filename (typically ending in ".pdf"), decide whether we can
pass it directly to a pdf2png program, or whether we first need to use
file-local-copy.
Stefan
- Re: testing for a remote file to include file on a Windows mappeddrive, (continued)
- Re: testing for a remote file to include file on a Windows mappeddrive, Richard Stallman, 2008/01/30
- Re: testing for a remote file to include file on a Windows mappeddrive, Michael Albinus, 2008/01/30
- Re: testing for a remote file to include file on a Windows mappeddrive, Stefan Monnier, 2008/01/30
- Re: testing for a remote file to include file on a Windows mappeddrive, Michael Albinus, 2008/01/30
- Re: testing for a remote file to include file on a Windows mappeddrive, Stefan Monnier, 2008/01/30
- Re: testing for a remote file to include file on a Windows mappeddrive, Michael Albinus, 2008/01/30
- Re: testing for a remote file to include file on a Windows mappeddrive, Stefan Monnier, 2008/01/30
- Re: testing for a remote file to include file on a Windows mappeddrive, David Kastrup, 2008/01/30
- Re: testing for a remote file to include file on a Windows mappeddrive, Stefan Monnier, 2008/01/30
- Re: testing for a remote file to include file on a Windows mappeddrive, Michael Albinus, 2008/01/30
- Re: testing for a remote file to include file on a Windows mappeddrive,
Stefan Monnier <=
- Re: testing for a remote file to include file on a Windows mappeddrive, Michael Albinus, 2008/01/31
- Re: testing for a remote file to include file on a Windows mappeddrive, Stefan Monnier, 2008/01/30
- Re: testing for a remote file to include file on a Windows mappeddrive, Stefan Monnier, 2008/01/30
- Re: testing for a remote file to include file on a Windows mappeddrive, Richard Stallman, 2008/01/30
- Re: testing for a remote file to include file on a Windows mappeddrive, Stefan Monnier, 2008/01/30
- Re: testing for a remote file to include file on a Windows mappeddrive, Richard Stallman, 2008/01/31
- Re: testing for a remote file to include file on a Windows mappeddrive, Jason Rumney, 2008/01/26
Re: testing for a remote file to include file on a Windows mapped drive, Eli Zaretskii, 2008/01/26
Re: testing for a remote file to include file on a Windows mapped drive, Stefan Monnier, 2008/01/25