diff options
| author | Richard M. Stallman | 2003-08-06 01:28:35 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 2003-08-06 01:28:35 +0000 |
| commit | 104ad648645ec53bd6d2497be86b7bce62b945dc (patch) | |
| tree | 5de8173e88e857f3f2a74afe94d8448317ae7112 | |
| parent | a756468d977f42ea99130622b9472374309ee1dd (diff) | |
| download | emacs-104ad648645ec53bd6d2497be86b7bce62b945dc.tar.gz emacs-104ad648645ec53bd6d2497be86b7bce62b945dc.zip | |
(Magic File Names): Add file-remote-p. Clarify file-local-copy.
| -rw-r--r-- | lispref/files.texi | 23 |
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 |
| 2464 | This function copies file @var{filename} to an ordinary non-magic file, | 2464 | This function copies file @var{filename} to an ordinary non-magic file |
| 2465 | if it isn't one already. | 2465 | on the local machine, if it isn't on the local machine already. Magic |
| 2466 | 2466 | file names should handle the @code{file-local-copy} operation if they | |
| 2467 | If @var{filename} specifies a magic file name, which programs | 2467 | refer to files on other machines. A magic file name that is used for |
| 2468 | outside Emacs cannot directly read or write, this copies the contents to | 2468 | other purposes than remote file access should not handle |
| 2469 | an ordinary file and returns that file's name. | 2469 | @code{file-local-copy}; then this function will treat the file as |
| 2470 | local. | ||
| 2471 | |||
| 2472 | If @var{filename} is local, whether magic or not, this function does | ||
| 2473 | nothing and returns @code{nil}. Otherwise it returns the file name | ||
| 2474 | of the local copy file. | ||
| 2475 | @end defun | ||
| 2470 | 2476 | ||
| 2471 | If @var{filename} is an ordinary file name, not magic, then this function | 2477 | @defun file-remote-p filename |
| 2472 | does nothing and returns @code{nil}. | 2478 | This functions return @code{t} if @var{filename} is a remote file---that is, |
| 2479 | a 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 |