aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman1992-10-20 07:05:38 +0000
committerRichard M. Stallman1992-10-20 07:05:38 +0000
commit68f5eb5a8de319f65cf2c3d7e8abafc083fc0021 (patch)
treecf0ed6bdaf4b27ddc5f82d3900287760ee36e2b8
parent8b8568efad0cfc3f82bf469b4b71014c80676b81 (diff)
downloademacs-68f5eb5a8de319f65cf2c3d7e8abafc083fc0021.tar.gz
emacs-68f5eb5a8de319f65cf2c3d7e8abafc083fc0021.zip
(ange-ftp-add-vms-host, ange-ftp-add-dl-dir, ange-ftp-add-mts-host):
(ange-ftp-add-dumb-unix-host): Use default-directory, not dired-directory. (ange-ftp-allow-child-lookup): Eliminate use of dired-local-variables-file.
-rw-r--r--lisp/ange-ftp.el31
1 files changed, 11 insertions, 20 deletions
diff --git a/lisp/ange-ftp.el b/lisp/ange-ftp.el
index 09c9bab1427..6e771fa214b 100644
--- a/lisp/ange-ftp.el
+++ b/lisp/ange-ftp.el
@@ -857,7 +857,7 @@ SIZE, if supplied, should be a prime number."
857;;;; Internal variables. 857;;;; Internal variables.
858;;;; ------------------------------------------------------------ 858;;;; ------------------------------------------------------------
859 859
860(defconst ange-ftp-version "$Revision: 1.8 $") 860(defconst ange-ftp-version "$Revision: 1.9 $")
861 861
862(defvar ange-ftp-data-buffer-name " *ftp data*" 862(defvar ange-ftp-data-buffer-name " *ftp data*"
863 "Buffer name to hold directory listing data received from ftp process.") 863 "Buffer name to hold directory listing data received from ftp process.")
@@ -2171,9 +2171,7 @@ to take switch arguments."
2171 "Interactively adds a given HOST to ange-ftp-dumb-unix-host-regexp." 2171 "Interactively adds a given HOST to ange-ftp-dumb-unix-host-regexp."
2172 (interactive 2172 (interactive
2173 (list (read-string "Host: " 2173 (list (read-string "Host: "
2174 (let ((name (or (buffer-file-name) 2174 (let ((name (or (buffer-file-name) default-directory)))
2175 (and (eq major-mode 'dired-mode)
2176 dired-directory))))
2177 (and name (car (ange-ftp-ftp-name name))))))) 2175 (and name (car (ange-ftp-ftp-name name)))))))
2178 (if (not (ange-ftp-dumb-unix-host host)) 2176 (if (not (ange-ftp-dumb-unix-host host))
2179 (setq ange-ftp-dumb-unix-host-regexp 2177 (setq ange-ftp-dumb-unix-host-regexp
@@ -2404,9 +2402,7 @@ as well.")
2404 "Interactively adds a DIR to ange-ftp-dl-dir-regexp." 2402 "Interactively adds a DIR to ange-ftp-dl-dir-regexp."
2405 (interactive 2403 (interactive
2406 (list (read-string "Directory: " 2404 (list (read-string "Directory: "
2407 (let ((name (or (buffer-file-name) 2405 (let ((name (or (buffer-file-name) default-directory)))
2408 (and (eq major-mode 'dired-mode)
2409 dired-directory))))
2410 (and name (ange-ftp-ftp-name name) 2406 (and name (ange-ftp-ftp-name name)
2411 (file-name-directory name)))))) 2407 (file-name-directory name))))))
2412 (if (not (and ange-ftp-dl-dir-regexp 2408 (if (not (and ange-ftp-dl-dir-regexp
@@ -2531,10 +2527,11 @@ that a wasted listing is not done:
2531 (host-type (ange-ftp-host-type 2527 (host-type (ange-ftp-host-type
2532 (car parsed)))) 2528 (car parsed))))
2533 (or 2529 (or
2534 ;; Deal with dired 2530;;; This variable seems not to exist in Emacs 19 -- rms.
2535 (and (boundp 'dired-local-variables-file) 2531;;; ;; Deal with dired
2536 (stringp dired-local-variables-file) 2532;;; (and (boundp 'dired-local-variables-file)
2537 (string-equal dired-local-variables-file efile)) 2533;;; (stringp dired-local-variables-file)
2534;;; (string-equal dired-local-variables-file efile))
2538 ;; No dots in dir names in vms. 2535 ;; No dots in dir names in vms.
2539 (and (eq host-type 'vms) 2536 (and (eq host-type 'vms)
2540 (string-match "\\." efile)) 2537 (string-match "\\." efile))
@@ -4575,9 +4572,7 @@ Other orders of $ and _ seem to all work just fine.")
4575 "Mark HOST as the name of a machine running VMS." 4572 "Mark HOST as the name of a machine running VMS."
4576 (interactive 4573 (interactive
4577 (list (read-string "Host: " 4574 (list (read-string "Host: "
4578 (let ((name (or (buffer-file-name) 4575 (let ((name (or (buffer-file-name) default-directory)))
4579 (and (eq major-mode 'dired-mode)
4580 dired-directory))))
4581 (and name (car (ange-ftp-ftp-name name))))))) 4576 (and name (car (ange-ftp-ftp-name name)))))))
4582 (if (not (ange-ftp-vms-host host)) 4577 (if (not (ange-ftp-vms-host host))
4583 (setq ange-ftp-vms-host-regexp 4578 (setq ange-ftp-vms-host-regexp
@@ -4985,9 +4980,7 @@ Other orders of $ and _ seem to all work just fine.")
4985 "Mark HOST as the name of a machine running MTS." 4980 "Mark HOST as the name of a machine running MTS."
4986 (interactive 4981 (interactive
4987 (list (read-string "Host: " 4982 (list (read-string "Host: "
4988 (let ((name (or (buffer-file-name) 4983 (let ((name (or (buffer-file-name) default-directory)))
4989 (and (eq major-mode 'dired-mode)
4990 dired-directory))))
4991 (and name (car (ange-ftp-ftp-name name))))))) 4984 (and name (car (ange-ftp-ftp-name name)))))))
4992 (if (not (ange-ftp-mts-host host)) 4985 (if (not (ange-ftp-mts-host host))
4993 (setq ange-ftp-mts-host-regexp 4986 (setq ange-ftp-mts-host-regexp
@@ -5169,9 +5162,7 @@ Other orders of $ and _ seem to all work just fine.")
5169 "Mark HOST as the name of a CMS host." 5162 "Mark HOST as the name of a CMS host."
5170 (interactive 5163 (interactive
5171 (list (read-string "Host: " 5164 (list (read-string "Host: "
5172 (let ((name (or (buffer-file-name) 5165 (let ((name (or (buffer-file-name) default-directory)))
5173 (and (eq major-mode 'dired-mode)
5174 dired-directory))))
5175 (and name (car (ange-ftp-ftp-name name))))))) 5166 (and name (car (ange-ftp-ftp-name name)))))))
5176 (if (not (ange-ftp-cms-host host)) 5167 (if (not (ange-ftp-cms-host host))
5177 (setq ange-ftp-cms-host-regexp 5168 (setq ange-ftp-cms-host-regexp