aboutsummaryrefslogtreecommitdiffstats
path: root/lisp
diff options
context:
space:
mode:
authorRichard M. Stallman1994-04-26 18:31:30 +0000
committerRichard M. Stallman1994-04-26 18:31:30 +0000
commitd0a54f0f3a7ac0ecca3893fd199e29f9d779697a (patch)
treebfd15b9561570f42925b63807deee8ee92fd3fb9 /lisp
parent0c37b824dfe3099d07e05737298f43789a187928 (diff)
downloademacs-d0a54f0f3a7ac0ecca3893fd199e29f9d779697a.tar.gz
emacs-d0a54f0f3a7ac0ecca3893fd199e29f9d779697a.zip
(internal-ange-ftp-mode): Set comint-prompt-regexp and paragraph-start.
Diffstat (limited to 'lisp')
-rw-r--r--lisp/ange-ftp.el11
1 files changed, 9 insertions, 2 deletions
diff --git a/lisp/ange-ftp.el b/lisp/ange-ftp.el
index 11aabf9728b..6d3c11614a2 100644
--- a/lisp/ange-ftp.el
+++ b/lisp/ange-ftp.el
@@ -851,7 +851,7 @@ SIZE, if supplied, should be a prime number."
851;;;; Internal variables. 851;;;; Internal variables.
852;;;; ------------------------------------------------------------ 852;;;; ------------------------------------------------------------
853 853
854(defconst ange-ftp-version "$Revision: 1.46 $") 854(defconst ange-ftp-version "$Revision: 1.47 $")
855 855
856(defvar ange-ftp-data-buffer-name " *ftp data*" 856(defvar ange-ftp-data-buffer-name " *ftp data*"
857 "Buffer name to hold directory listing data received from ftp process.") 857 "Buffer name to hold directory listing data received from ftp process.")
@@ -1774,6 +1774,9 @@ on the gateway machine to do the ftp instead."
1774 proc)) 1774 proc))
1775 1775
1776(defun internal-ange-ftp-mode () 1776(defun internal-ange-ftp-mode ()
1777 "Major mode for interacting with the FTP process.
1778
1779\\{comint-mode-map}"
1777 (interactive) 1780 (interactive)
1778 (comint-mode) 1781 (comint-mode)
1779 (setq major-mode 'internal-ange-ftp-mode) 1782 (setq major-mode 'internal-ange-ftp-mode)
@@ -1797,7 +1800,11 @@ on the gateway machine to do the ftp instead."
1797 (make-local-variable 'ange-ftp-last-percent) 1800 (make-local-variable 'ange-ftp-last-percent)
1798 (setq ange-ftp-hash-mark-count 0) 1801 (setq ange-ftp-hash-mark-count 0)
1799 (setq ange-ftp-xfer-size 0) 1802 (setq ange-ftp-xfer-size 0)
1800 (setq ange-ftp-process-result-line ""))) 1803 (setq ange-ftp-process-result-line "")
1804
1805 (setq comint-prompt-regexp "^ftp> ")
1806 (make-local-variable 'paragraph-start)
1807 (setq paragraph-start comint-prompt-regexp)))
1801 1808
1802(defun ange-ftp-smart-login (host user pass account proc) 1809(defun ange-ftp-smart-login (host user pass account proc)
1803 "Connect to the FTP-server on HOST as USER using PASSWORD and ACCOUNT. 1810 "Connect to the FTP-server on HOST as USER using PASSWORD and ACCOUNT.