diff options
| author | Jim Blandy | 1993-06-24 03:02:20 +0000 |
|---|---|---|
| committer | Jim Blandy | 1993-06-24 03:02:20 +0000 |
| commit | 712a169400ab322d776afdac446c3cce3ee3bfea (patch) | |
| tree | b4f289a9d645bc02845530da7d5193576c8d3bf8 | |
| parent | d02e05d1ff1002a8dfb8efa14a01e59f26c00aaf (diff) | |
| download | emacs-712a169400ab322d776afdac446c3cce3ee3bfea.tar.gz emacs-712a169400ab322d776afdac446c3cce3ee3bfea.zip | |
* ange-ftp.el: Loosen file-name-handler-alist regexp so we can do
host name completion.
| -rw-r--r-- | lisp/ange-ftp.el | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/lisp/ange-ftp.el b/lisp/ange-ftp.el index 78f83c3e2c0..c7d4ea48a79 100644 --- a/lisp/ange-ftp.el +++ b/lisp/ange-ftp.el | |||
| @@ -856,7 +856,7 @@ SIZE, if supplied, should be a prime number." | |||
| 856 | ;;;; Internal variables. | 856 | ;;;; Internal variables. |
| 857 | ;;;; ------------------------------------------------------------ | 857 | ;;;; ------------------------------------------------------------ |
| 858 | 858 | ||
| 859 | (defconst ange-ftp-version "$Revision: 1.27 $") | 859 | (defconst ange-ftp-version "$Revision: 1.28 $") |
| 860 | 860 | ||
| 861 | (defvar ange-ftp-data-buffer-name " *ftp data*" | 861 | (defvar ange-ftp-data-buffer-name " *ftp data*" |
| 862 | "Buffer name to hold directory listing data received from ftp process.") | 862 | "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.") | |||
| 3748 | (let (file-name-handler-alist) | 3748 | (let (file-name-handler-alist) |
| 3749 | (apply operation args))))) | 3749 | (apply operation args))))) |
| 3750 | 3750 | ||
| 3751 | |||
| 3752 | ;;; This regexp takes care of real ange-ftp file names (with a slash | ||
| 3753 | ;;; and colon), and absolute filenames with only one component, for | ||
| 3754 | ;;; the sake of hostname completion. | ||
| 3751 | ;;;###autoload | 3755 | ;;;###autoload |
| 3752 | (or (assoc "^/[^/:]+:" file-name-handler-alist) | 3756 | (or (assoc "^/[^/:]*\\([^/:]:\\|\\'\\)" file-name-handler-alist) |
| 3753 | (setq file-name-handler-alist | 3757 | (setq file-name-handler-alist |
| 3754 | (cons '("^/[^/:]+:" . ange-ftp-hook-function) | 3758 | (cons '("^/[^/:]+:" . ange-ftp-hook-function) |
| 3755 | file-name-handler-alist))) | 3759 | file-name-handler-alist))) |