Mercurial > hg > xemacs-beta
diff lisp/prim/files.el @ 44:8d2a9b52c682 r19-15prefinal
Import from CVS: tag r19-15prefinal
author | cvs |
---|---|
date | Mon, 13 Aug 2007 08:55:10 +0200 |
parents | 8b8b7f3559a2 |
children | 56c54cf7c5b6 |
line wrap: on
line diff
--- a/lisp/prim/files.el Mon Aug 13 08:54:52 2007 +0200 +++ b/lisp/prim/files.el Mon Aug 13 08:55:10 2007 +0200 @@ -3005,13 +3005,11 @@ (error "Apparently circular symlink path")))) ;; Suggested by Michael Kifer <kifer@CS.SunySB.EDU> -(defun file-remote-p (file) - "Test whether file resides on the local system. -The special value 'unknown is returned if no remote file access package -has been loaded." - (cond ((featurep 'ange-ftp) (ange-ftp-ftp-path file-name)) - (t (require 'efs) - (efs-ftp-path file-name)))) +(defun file-remote-p (file-name) + "Test whether FILE-NAME is looked for on a remote system." + (cond ((not allow-remote-paths) nil) + ((featurep 'ange-ftp) (ange-ftp-ftp-path file-name)) + (t (efs-ftp-path file-name)))) ;; Written in C in FSF (defun insert-file-contents (filename &optional visit beg end replace)