aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman2003-08-06 01:28:35 +0000
committerRichard M. Stallman2003-08-06 01:28:35 +0000
commit104ad648645ec53bd6d2497be86b7bce62b945dc (patch)
tree5de8173e88e857f3f2a74afe94d8448317ae7112
parenta756468d977f42ea99130622b9472374309ee1dd (diff)
downloademacs-104ad648645ec53bd6d2497be86b7bce62b945dc.tar.gz
emacs-104ad648645ec53bd6d2497be86b7bce62b945dc.zip
(Magic File Names): Add file-remote-p. Clarify file-local-copy.
-rw-r--r--lispref/files.texi23
1 files changed, 15 insertions, 8 deletions
diff --git a/lispref/files.texi b/lispref/files.texi
index c594f0a78a0..24059df24ab 100644
--- a/lispref/files.texi
+++ b/lispref/files.texi
@@ -2461,15 +2461,22 @@ for comparison with @code{inhibit-file-name-operation}.
2461@end defun 2461@end defun
2462 2462
2463@defun file-local-copy filename 2463@defun file-local-copy filename
2464This function copies file @var{filename} to an ordinary non-magic file, 2464This function copies file @var{filename} to an ordinary non-magic file
2465if it isn't one already. 2465on the local machine, if it isn't on the local machine already. Magic
2466 2466file names should handle the @code{file-local-copy} operation if they
2467If @var{filename} specifies a magic file name, which programs 2467refer to files on other machines. A magic file name that is used for
2468outside Emacs cannot directly read or write, this copies the contents to 2468other purposes than remote file access should not handle
2469an ordinary file and returns that file's name. 2469@code{file-local-copy}; then this function will treat the file as
2470local.
2471
2472If @var{filename} is local, whether magic or not, this function does
2473nothing and returns @code{nil}. Otherwise it returns the file name
2474of the local copy file.
2475@end defun
2470 2476
2471If @var{filename} is an ordinary file name, not magic, then this function 2477@defun file-remote-p filename
2472does nothing and returns @code{nil}. 2478This functions return @code{t} if @var{filename} is a remote file---that is,
2479a magic file name that handles @code{file-local-copy}.
2473@end defun 2480@end defun
2474 2481
2475@defun unhandled-file-name-directory filename 2482@defun unhandled-file-name-directory filename