comparison lispref/files.texi @ 90982:a66921565bcb

Merge from emacs--devo--0 Patches applied: * emacs--devo--0 (patch 806-813) - Merge from emacs--rel--22 - Update from CVS * emacs--rel--22 (patch 51-58) - Update from CVS - Merge from gnus--rel--5.10 * gnus--rel--5.10 (patch 233-236) - Merge from emacs--devo--0 - Update from CVS Revision: emacs@sv.gnu.org/emacs--unicode--0--patch-230
author Miles Bader <miles@gnu.org>
date Sun, 15 Jul 2007 04:47:46 +0000
parents 988f1edc9674 665f8d0fb99f
children a1be62cbd32a
comparison
equal deleted inserted replaced
90981:a37d5bf6cbb7 90982:a66921565bcb
2766 If @var{filename} is local, whether magic or not, this function does 2766 If @var{filename} is local, whether magic or not, this function does
2767 nothing and returns @code{nil}. Otherwise it returns the file name 2767 nothing and returns @code{nil}. Otherwise it returns the file name
2768 of the local copy file. 2768 of the local copy file.
2769 @end defun 2769 @end defun
2770 2770
2771 @defun file-remote-p filename 2771 @defun file-remote-p filename &optional connected
2772 This function tests whether @var{filename} is a remote file. If 2772 This function tests whether @var{filename} is a remote file. If
2773 @var{filename} is local (not remote), the return value is @code{nil}. 2773 @var{filename} is local (not remote), the return value is @code{nil}.
2774 If @var{filename} is indeed remote, the return value is a string that 2774 If @var{filename} is indeed remote, the return value is a string that
2775 identifies the remote system. 2775 identifies the remote system.
2776 2776
2777 This identifier string can include a host name and a user name, as 2777 This identifier string can include a host name and a user name, as
2778 well as characters designating the method used to access the remote 2778 well as characters designating the method used to access the remote
2779 system. For example, the remote identifier string for the filename 2779 system. For example, the remote identifier string for the filename
2780 @code{/ssh:user@@host:/some/file} is @code{/ssh:user@@host:}. 2780 @code{/sudo::/some/file} is @code{/sudo:root@@localhost:}.
2781 2781
2782 If @code{file-remote-p} returns the same identifier for two different 2782 If @code{file-remote-p} returns the same identifier for two different
2783 filenames, that means they are stored on the same file system and can 2783 filenames, that means they are stored on the same file system and can
2784 be accessed locally with respect to each other. This means, for 2784 be accessed locally with respect to each other. This means, for
2785 example, that it is possible to start a remote process accessing both 2785 example, that it is possible to start a remote process accessing both
2786 files at the same time. Implementors of file handlers need to ensure 2786 files at the same time. Implementors of file handlers need to ensure
2787 this principle is valid. 2787 this principle is valid.
2788
2789 If @var{connected} is non-@code{nil}, this function returns @code{nil}
2790 even if @var{filename} is remote, if Emacs has no network connection
2791 to its host. This is useful when you want to avoid the delay of
2792 making connections when they don't exist.
2788 @end defun 2793 @end defun
2789 2794
2790 @defun unhandled-file-name-directory filename 2795 @defun unhandled-file-name-directory filename
2791 This function returns the name of a directory that is not magic. It 2796 This function returns the name of a directory that is not magic. It
2792 uses the directory part of @var{filename} if that is not magic. For a 2797 uses the directory part of @var{filename} if that is not magic. For a