aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman1993-07-20 07:12:00 +0000
committerRichard M. Stallman1993-07-20 07:12:00 +0000
commit0628c764af5c887fceda7e03e7d84dc0b4e1e568 (patch)
tree8e3672dbc7d3ac93ed01b82ed60af67da56f9b52
parent96099e29a3e11d09e5845df59c2736117ff96a3b (diff)
downloademacs-0628c764af5c887fceda7e03e7d84dc0b4e1e568.tar.gz
emacs-0628c764af5c887fceda7e03e7d84dc0b4e1e568.zip
(file-name-handler-alist): Have two separate regexps with different hooks.
-rw-r--r--lisp/ange-ftp.el17
1 files changed, 12 insertions, 5 deletions
diff --git a/lisp/ange-ftp.el b/lisp/ange-ftp.el
index 29324c3a6a5..3ce5d055193 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.29 $") 859(defconst ange-ftp-version "$Revision: 1.30 $")
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.")
@@ -3750,12 +3750,19 @@ NEWNAME should be the name to give the new compressed or uncompressed file.")
3750 3750
3751 3751
3752;;; This regexp takes care of real ange-ftp file names (with a slash 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 3753;;; and colon).
3754;;; the sake of hostname completion.
3755;;;###autoload 3754;;;###autoload
3756(or (assoc "^/[^/:]*\\([^/:]:\\|\\'\\)" file-name-handler-alist) 3755(or (assoc "^/[^/:]*[^/:]:" file-name-handler-alist)
3757 (setq file-name-handler-alist 3756 (setq file-name-handler-alist
3758 (cons '("^/[^/:]*\\([^/:]:\\|\\'\\)" . ange-ftp-hook-function) 3757 (cons '("^/[^/:]*[^/:]:" . ange-ftp-hook-function)
3758 file-name-handler-alist)))
3759
3760;;; This regexp recognizes and absolute filenames with only one component,
3761;;; for the sake of hostname completion.
3762;;;###autoload
3763(or (assoc "^/[^/:]*\\'" file-name-handler-alist)
3764 (setq file-name-handler-alist
3765 (cons '("^/[^/:]*\\'" . ange-ftp-completion-hook-function)
3759 file-name-handler-alist))) 3766 file-name-handler-alist)))
3760 3767
3761;;; The above two forms are sufficient to cause this file to be loaded 3768;;; The above two forms are sufficient to cause this file to be loaded