aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKai Großjohann2004-07-02 14:49:39 +0000
committerKai Großjohann2004-07-02 14:49:39 +0000
commit8addb6ebbaecbad78010d66475d6ae5418cb0416 (patch)
tree4815a0e93189605d37d9bf087a50d663ecb3a3e2
parent5fe536b81b3f41fba656b191e0c5c0e5439cc8ae (diff)
downloademacs-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/ChangeLog5
-rw-r--r--lispref/files.texi18
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 @@
12004-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
12004-07-02 David Kastrup <dak@gnu.org> 62004-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
2649This function returns @code{t} if @var{filename} is a remote file. 2649This function tests whether @var{filename} is a remote file. The
2650return value is an identifier of the remote system, if @var{filename}
2651is indeed remote. Besides the host name, the identifier may comprise
2652a user name and a method used to access that system.
2653
2654To illustrate, for the filename @code{/ssh:user@@host:/some/file}, the
2655identifier is @code{/ssh:user@@host:}.
2656
2657If @var{filename} is local (not remote), then the return value is
2658@code{nil}.
2659
2660If @code{file-remote-p} returns the same identifier for two different
2661filenames, then the file handler is the same, and also the files can
2662be accessed locally with respect to each other. This means, for
2663example, that it is possible to start a (remote) process accessing
2664both files at the same time. Implementors of file handlers need to
2665ensure this.
2650@end defun 2666@end defun
2651 2667
2652@defun unhandled-file-name-directory filename 2668@defun unhandled-file-name-directory filename