* net/ange-ftp.el (ange-ftp-insert-directory): Undo unintended part
in last change.
+ (ange-ftp-insert-directory): Fix up the search for the case where
+ `file' is absolute.
2005-10-02 Romain Francoise <romain@orebokech.com>
(setq switches (substring switches 0 (match-beginning 0))))
(let* ((dirlist (ange-ftp-ls (or (file-name-directory file) ".")
switches nil))
+ (filename (file-name-nondirectory (directory-file-name file)))
(case-fold-search nil))
;; FIXME: This presumes a particular output format, which is
;; basically Unix.
- (if (string-match (concat "^.+[^ ] " (regexp-quote file)
+ (if (string-match (concat "^.+[^ ] " (regexp-quote filename)
"\\( -> .*\\)?[@/*=]?\n") dirlist)
(match-string 0 dirlist)
"")))))))