summaryrefslogtreecommitdiff
path: root/lisp/ange-ftp.el
diff options
context:
space:
mode:
authorRichard M. Stallman <rms@gnu.org>1994-05-23 22:44:08 +0000
committerRichard M. Stallman <rms@gnu.org>1994-05-23 22:44:08 +0000
commit630233cee80b249cb93831100beb6b48a6f5c0a1 (patch)
tree27f0f5bf2735fcc2961b23388105ba39d51fb0a3 /lisp/ange-ftp.el
parentad6ec404d4fbc8790f931de537aeea228d730d31 (diff)
downloademacs-630233cee80b249cb93831100beb6b48a6f5c0a1.tar.gz
(ange-ftp-gwp-start): Call internal-ange-ftp-mode.
Diffstat (limited to 'lisp/ange-ftp.el')
-rw-r--r--lisp/ange-ftp.el9
1 files changed, 6 insertions, 3 deletions
diff --git a/lisp/ange-ftp.el b/lisp/ange-ftp.el
index 233936ae046..23ed923064a 100644
--- a/lisp/ange-ftp.el
+++ b/lisp/ange-ftp.el
@@ -851,7 +851,7 @@ SIZE, if supplied, should be a prime number."
;;;; Internal variables.
;;;; ------------------------------------------------------------
-(defconst ange-ftp-version "$Revision: 1.50 $")
+(defconst ange-ftp-version "$Revision: 1.51 $")
(defvar ange-ftp-data-buffer-name " *ftp data*"
"Buffer name to hold directory listing data received from ftp process.")
@@ -1621,14 +1621,17 @@ good, skip, fatal, or unknown."
;; but that doesn't work: ftp never responds.
;; Can anyone find a fix for that?
(proc (let ((process-connection-type t))
- (start-process name name
+ (start-process name name
ange-ftp-gateway-program
ange-ftp-gateway-host)))
(ftp (mapconcat (function identity) args " ")))
(process-kill-without-query proc)
(set-process-sentinel proc (function ange-ftp-gwp-sentinel))
(set-process-filter proc (function ange-ftp-gwp-filter))
- (set-marker (process-mark proc) (point))
+ (save-excursion
+ (set-buffer (process-buffer proc))
+ (internal-ange-ftp-mode)
+ (set-marker (process-mark proc) (point)))
(setq ange-ftp-gwp-running t
ange-ftp-gwp-status nil)
(ange-ftp-message "Connecting to gateway %s..." ange-ftp-gateway-host)