emacs-devel
[Top][All Lists]
Advanced

[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 12:52:47 -0500
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.50 (gnu/linux)

>>> As usual, I don't care function names too much. But the mapping
>> 
>>> (nonmagic-file-name "/sudo::") => "/root"
>> 
>>> doesn't seem to be obvious, although it would be the implementation
>>> for Tramp.
>> 
>> Actually, this implementation would be incorrect for my purpose
>> (doc-view): the important aspect of unhandled-file-name is that
>> a subprocess will be able to use it.  So it should be accessible by the
>> normal Emacs user.

> I don't think that nonmagic-file-name is supposed to deal with
> permissions.  If it were, it would be pretty pointless since most tramp
> file names would differ in some way in the permissions.

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.


        Stefan




reply via email to

[Prev in Thread] Current Thread [Next in Thread]