]> git.eshelyaron.com Git - emacs.git/commitdiff
* ange-ftp.el: Loosen file-name-handler-alist regexp so we can do
authorJim Blandy <jimb@redhat.com>
Thu, 24 Jun 1993 03:02:20 +0000 (03:02 +0000)
committerJim Blandy <jimb@redhat.com>
Thu, 24 Jun 1993 03:02:20 +0000 (03:02 +0000)
host name completion.

lisp/ange-ftp.el

index 78f83c3e2c093a4ec4db0850953fdfbda701c375..c7d4ea48a797bf6e07f9a12c8cae512903e40090 100644 (file)
@@ -856,7 +856,7 @@ SIZE, if supplied, should be a prime number."
 ;;;; Internal variables.
 ;;;; ------------------------------------------------------------
 
-(defconst ange-ftp-version "$Revision: 1.27 $")
+(defconst ange-ftp-version "$Revision: 1.28 $")
 
 (defvar ange-ftp-data-buffer-name " *ftp data*"
   "Buffer name to hold directory listing data received from ftp process.")
@@ -3748,8 +3748,12 @@ NEWNAME should be the name to give the new compressed or uncompressed file.")
       (let (file-name-handler-alist)
        (apply operation args)))))
 
+
+;;; This regexp takes care of real ange-ftp file names (with a slash
+;;; and colon), and absolute filenames with only one component, for
+;;; the sake of hostname completion.
 ;;;###autoload
-(or (assoc "^/[^/:]+:" file-name-handler-alist)
+(or (assoc "^/[^/:]*\\([^/:]:\\|\\'\\)" file-name-handler-alist)
     (setq file-name-handler-alist
          (cons '("^/[^/:]+:" . ange-ftp-hook-function)
                file-name-handler-alist)))