diff lisp/prim/files.el @ 22:8fc7fe29b841 r19-15b94

Import from CVS: tag r19-15b94
author cvs
date Mon, 13 Aug 2007 08:50:29 +0200
parents 0293115a14e9
children 4103f0995bd7
line wrap: on
line diff
--- a/lisp/prim/files.el	Mon Aug 13 08:50:06 2007 +0200
+++ b/lisp/prim/files.el	Mon Aug 13 08:50:29 2007 +0200
@@ -2572,7 +2572,10 @@
 	files
 	(buffer (get-buffer-create " *recover*")))
     ;; #### dired-do-flagged-delete in FSF.
-    (dired-do-deletions t)
+    ;; This version is for ange-ftp
+    ;;(dired-do-deletions t)
+    ;T This version is for efs
+    (dired-expunge-deletions)
     (unwind-protect
 	(save-excursion
 	  ;; Read in the auto-save-list file.
@@ -3003,6 +3006,14 @@
 	filename
       (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 ((fboundp 'efs-ftp-path) (efs-ftp-path name))
+	((fboundp 'ange-ftp-ftp-name) (ange-ftp-ftp-name name))
+	(t 'unknown)))
 
 ;; Written in C in FSF
 (defun insert-file-contents (filename &optional visit beg end replace)