* net/ange-ftp.el (ange-ftp-file-remote-p): Handle `localname' as
authorMichael Albinus <michael.albinus@gmx.de>
Mon, 29 Sep 2008 05:42:20 +0000 (05:42 +0000)
committerMichael Albinus <michael.albinus@gmx.de>
Mon, 29 Sep 2008 05:42:20 +0000 (05:42 +0000)
identification.

lisp/ChangeLog
lisp/net/ange-ftp.el

index 3e57987..f8af9ff 100644 (file)
@@ -1,3 +1,11 @@
+2008-09-29  Michael Albinus  <michael.albinus@gmx.de>
+
+       * files.el (file-remote-p): Precise doc string; IDENTIFICATION can
+       also be `localname'.
+
+       * net/ange-ftp.el (ange-ftp-file-remote-p): Handle `localname' as
+       identification.
+
 2008-09-28  Glenn Morris  <rgm@gnu.org>
 
        * vc.el (vc-switches): Give it a doc string.
index 0d1b16b..eb3174d 100644 (file)
@@ -4127,7 +4127,8 @@ directory, so that Emacs will know its current contents."
 (defun ange-ftp-file-remote-p (file &optional identification connected)
   (let* ((parsed (ange-ftp-ftp-name file))
         (host (nth 0 parsed))
-        (user (nth 1 parsed)))
+        (user (nth 1 parsed))
+        (localname (nth 2 parsed)))
     (and (or (not connected)
             (let ((proc (get-process (ange-ftp-ftp-process-buffer host user))))
               (and proc (processp proc)
@@ -4136,6 +4137,7 @@ directory, so that Emacs will know its current contents."
          ((eq identification 'method) (and parsed "ftp"))
          ((eq identification 'user) user)
          ((eq identification 'host) host)
+         ((eq identification 'localname) localname)
          (t (ange-ftp-replace-name-component file ""))))))
 
 (defun ange-ftp-load (file &optional noerror nomessage nosuffix)