;;;; 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.")
(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)))