Function: ftp-mode
ftp-mode is an interactive and byte-compiled function defined in
net-utils.el.gz.
Signature
(ftp-mode)
Documentation
Major mode for interacting with the ftp program.
In addition to any hooks its parent mode comint-mode might have run,
this mode runs the hook ftp-mode-hook, as the final or penultimate
step during initialization.
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/net/net-utils.el.gz
(define-derived-mode ftp-mode comint-mode "FTP"
"Major mode for interacting with the ftp program."
(setq comint-prompt-regexp ftp-prompt-regexp)
(setq comint-input-autoexpand t)
;; Only add the password-prompting hook if it's not already in the
;; global hook list. This stands a small chance of losing, if it's
;; later removed from the global list (very small, since any
;; password prompts will probably immediately follow the initial
;; connection), but it's better than getting prompted twice for the
;; same password.
(unless (memq #'comint-watch-for-password-prompt
(default-value 'comint-output-filter-functions))
(add-hook 'comint-output-filter-functions #'comint-watch-for-password-prompt
nil t)))