Variable: ftp-mode-hook
ftp-mode-hook is a variable defined in net-utils.el.gz.
Value
nil
Documentation
Hook run after entering FTP mode.
No problems result if this variable is not bound.
add-hook automatically binds it. (This is true for all hook variables.)
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)))