/[emacs]/emacs/lispref/files.texi
ViewVC logotype

Diff of /emacs/lispref/files.texi

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.69 by rms, Thu Jun 24 20:08:20 2004 UTC revision 1.70 by kai, Fri Jul 2 14:49:39 2004 UTC
# Line 2646  of the local copy file. Line 2646  of the local copy file.
2646  @end defun  @end defun
2647    
2648  @defun file-remote-p filename  @defun file-remote-p filename
2649  This function returns @code{t} if @var{filename} is a remote file.  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.
2666  @end defun  @end defun
2667    
2668  @defun unhandled-file-name-directory filename  @defun unhandled-file-name-directory filename

Legend:
Removed from v.1.69  
changed lines
  Added in v.1.70

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26