diff options
| author | Kai Großjohann | 2004-07-02 14:49:39 +0000 |
|---|---|---|
| committer | Kai Großjohann | 2004-07-02 14:49:39 +0000 |
| commit | 8addb6ebbaecbad78010d66475d6ae5418cb0416 (patch) | |
| tree | 4815a0e93189605d37d9bf087a50d663ecb3a3e2 | |
| parent | 5fe536b81b3f41fba656b191e0c5c0e5439cc8ae (diff) | |
| download | emacs-8addb6ebbaecbad78010d66475d6ae5418cb0416.tar.gz emacs-8addb6ebbaecbad78010d66475d6ae5418cb0416.zip | |
(Magic File Names): `file-remote-p' returns an identifier of the
remote system, not just t.
| -rw-r--r-- | lispref/ChangeLog | 5 | ||||
| -rw-r--r-- | lispref/files.texi | 18 |
2 files changed, 22 insertions, 1 deletions
diff --git a/lispref/ChangeLog b/lispref/ChangeLog index ff73949f771..d2bddd9d1b4 100644 --- a/lispref/ChangeLog +++ b/lispref/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2004-07-02 Kai Grossjohann <kai@emptydomain.de> | ||
| 2 | |||
| 3 | * files.texi (Magic File Names): `file-remote-p' returns an | ||
| 4 | identifier of the remote system, not just t. | ||
| 5 | |||
| 1 | 2004-07-02 David Kastrup <dak@gnu.org> | 6 | 2004-07-02 David Kastrup <dak@gnu.org> |
| 2 | 7 | ||
| 3 | * searching.texi (Entire Match Data): Add explanation about new | 8 | * searching.texi (Entire Match Data): Add explanation about new |
diff --git a/lispref/files.texi b/lispref/files.texi index 10d6c808625..3fb9460da8a 100644 --- a/lispref/files.texi +++ b/lispref/files.texi | |||
| @@ -2646,7 +2646,23 @@ of the local copy file. | |||
| 2646 | @end defun | 2646 | @end defun |
| 2647 | 2647 | ||
| 2648 | @defun file-remote-p filename | 2648 | @defun file-remote-p filename |
| 2649 | This function returns @code{t} if @var{filename} is a remote file. | 2649 | This function tests whether @var{filename} is a remote file. The |
| 2650 | return value is an identifier of the remote system, if @var{filename} | ||
| 2651 | is indeed remote. Besides the host name, the identifier may comprise | ||
| 2652 | a user name and a method used to access that system. | ||
| 2653 | |||
| 2654 | To illustrate, for the filename @code{/ssh:user@@host:/some/file}, the | ||
| 2655 | identifier is @code{/ssh:user@@host:}. | ||
| 2656 | |||
| 2657 | If @var{filename} is local (not remote), then the return value is | ||
| 2658 | @code{nil}. | ||
| 2659 | |||
| 2660 | If @code{file-remote-p} returns the same identifier for two different | ||
| 2661 | filenames, then the file handler is the same, and also the files can | ||
| 2662 | be accessed locally with respect to each other. This means, for | ||
| 2663 | example, that it is possible to start a (remote) process accessing | ||
| 2664 | both files at the same time. Implementors of file handlers need to | ||
| 2665 | ensure this. | ||
| 2650 | @end defun | 2666 | @end defun |
| 2651 | 2667 | ||
| 2652 | @defun unhandled-file-name-directory filename | 2668 | @defun unhandled-file-name-directory filename |