aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKarl Heuer1994-04-12 04:26:57 +0000
committerKarl Heuer1994-04-12 04:26:57 +0000
commitb8952f887d1d22c4910eef2888a8e47ec288e1a5 (patch)
treec6109f2ae974a7ca9ee0f813fd9ec19260ee5603
parent78328f33338c387b0714d900a2f47c356e10cf2f (diff)
downloademacs-b8952f887d1d22c4910eef2888a8e47ec288e1a5.tar.gz
emacs-b8952f887d1d22c4910eef2888a8e47ec288e1a5.zip
(ange-ftp-process-filter, ange-ftp-gwp-filter): Call comint-output-filter.
-rw-r--r--lisp/ange-ftp.el22
1 files changed, 3 insertions, 19 deletions
diff --git a/lisp/ange-ftp.el b/lisp/ange-ftp.el
index a0fc2a2307b..5ea0623f8cf 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.43 $") 860(defconst ange-ftp-version "$Revision: 1.44 $")
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.")
@@ -1400,22 +1400,6 @@ into one of four categories: good, skip, fatal, or unknown."
1400 (setq ange-ftp-process-busy nil 1400 (setq ange-ftp-process-busy nil
1401 ange-ftp-process-result-line line)))) 1401 ange-ftp-process-result-line line))))
1402 1402
1403(defun ange-ftp-process-log-string (proc str)
1404 "For a given PROCESS, log the given STRING at the end of its
1405associated buffer."
1406 (let ((old-buffer (current-buffer)))
1407 (unwind-protect
1408 (let (moving)
1409 (set-buffer (process-buffer proc))
1410 (setq moving (= (point) (process-mark proc)))
1411 (save-excursion
1412 ;; Insert the text, moving the process-marker.
1413 (goto-char (process-mark proc))
1414 (insert str)
1415 (set-marker (process-mark proc) (point)))
1416 (if moving (goto-char (process-mark proc))))
1417 (set-buffer old-buffer))))
1418
1419(defun ange-ftp-set-xfer-size (host user bytes) 1403(defun ange-ftp-set-xfer-size (host user bytes)
1420 "Set the size of the next FTP transfer in bytes." 1404 "Set the size of the next FTP transfer in bytes."
1421 (let ((proc (ange-ftp-get-process host user))) 1405 (let ((proc (ange-ftp-get-process host user)))
@@ -1479,7 +1463,7 @@ on to ange-ftp-process-handle-line to deal with."
1479 ange-ftp-process-busy 1463 ange-ftp-process-busy
1480 (string-match "^#+$" str) 1464 (string-match "^#+$" str)
1481 (setq str (ange-ftp-process-handle-hash str))) 1465 (setq str (ange-ftp-process-handle-hash str)))
1482 (ange-ftp-process-log-string proc str) 1466 (comint-output-filter proc str)
1483 (if ange-ftp-process-busy 1467 (if ange-ftp-process-busy
1484 (progn 1468 (progn
1485 (setq ange-ftp-process-string (concat ange-ftp-process-string 1469 (setq ange-ftp-process-string (concat ange-ftp-process-string
@@ -1609,7 +1593,7 @@ on to ange-ftp-process-handle-line to deal with."
1609 1593
1610(defun ange-ftp-gwp-filter (proc str) 1594(defun ange-ftp-gwp-filter (proc str)
1611 (ange-ftp-save-match-data 1595 (ange-ftp-save-match-data
1612 (ange-ftp-process-log-string proc str) 1596 (comint-output-filter proc str)
1613 (cond ((string-match "login: *$" str) 1597 (cond ((string-match "login: *$" str)
1614 (send-string proc 1598 (send-string proc
1615 (concat 1599 (concat