emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: file-symlink-p for remote files?


From: Kai Großjohann
Subject: Re: file-symlink-p for remote files?
Date: Wed, 09 Apr 2003 21:57:57 +0200
User-agent: Gnus/5.090018 (Oort Gnus v0.18) Emacs/21.3.50 (gnu/linux)

I've just looked at the new code for file-chase-links.  It occurred
to me that it tries hard to deal with the problem that file-symlink-p
returns a string that might not work as a filename.

How about adding another arg to file-symlink-p which specifies
whether to return the link target as-is, or whether to return it as a
filename?

Then file-chase-links wouldn't have to deal with ".." itself; instead
it could just tell file-symlink-p to return a filename, and then work
with that filename.

It would be really easy in the file handlers to return either the
original string or a filename.  In Ange-FTP returning a filename
would amount to calling ange-ftp-replace-name-component, and in Tramp
it would amount to calling tramp-make-tramp-file-name.
-- 
A preposition is not a good thing to end a sentence with.





reply via email to

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