Variable: tramp-actions-before-shell

tramp-actions-before-shell is a variable defined in tramp-sh.el.gz.

Value

((tramp-login-prompt-regexp tramp-action-login)
 (tramp-password-prompt-regexp tramp-action-password)
 (tramp-otp-password-prompt-regexp tramp-action-otp-password)
 (tramp-fingerprint-prompt-regexp tramp-action-fingerprint)
 (tramp-wrong-passwd-regexp tramp-action-permission-denied)
 (shell-prompt-pattern tramp-action-succeed)
 (tramp-shell-prompt-pattern tramp-action-succeed)
 (tramp-yesno-prompt-regexp tramp-action-yesno)
 (tramp-yn-prompt-regexp tramp-action-yn)
 (tramp-terminal-prompt-regexp tramp-action-terminal)
 (tramp-antispoof-regexp tramp-action-confirm-message)
 (tramp-security-key-confirm-regexp
  tramp-action-show-and-confirm-message)
 (tramp-security-key-pin-regexp tramp-action-otp-password)
 (tramp-process-alive-regexp tramp-action-process-alive))

Documentation

List of pattern/action pairs.

Whenever a pattern matches, the corresponding action is performed. Each item looks like (PATTERN ACTION).

The PATTERN should be a symbol, a variable. The value of this variable gives the regular expression to search for. Note that the regexp must match at the end of the buffer, "\\'" is implicitly appended to it.

The ACTION should also be a symbol, but a function. When the corresponding PATTERN matches, the ACTION function is called.

Source Code

;; Defined in /usr/src/emacs/lisp/net/tramp-sh.el.gz
;;;###tramp-autoload
(defconst tramp-actions-before-shell
  '((tramp-login-prompt-regexp tramp-action-login)
    (tramp-password-prompt-regexp tramp-action-password)
    (tramp-otp-password-prompt-regexp tramp-action-otp-password)
    (tramp-fingerprint-prompt-regexp tramp-action-fingerprint)
    (tramp-wrong-passwd-regexp tramp-action-permission-denied)
    (shell-prompt-pattern tramp-action-succeed)
    (tramp-shell-prompt-pattern tramp-action-succeed)
    (tramp-yesno-prompt-regexp tramp-action-yesno)
    (tramp-yn-prompt-regexp tramp-action-yn)
    (tramp-terminal-prompt-regexp tramp-action-terminal)
    (tramp-antispoof-regexp tramp-action-confirm-message)
    (tramp-security-key-confirm-regexp tramp-action-show-and-confirm-message)
    (tramp-security-key-pin-regexp tramp-action-otp-password)
    (tramp-process-alive-regexp tramp-action-process-alive))
  "List of pattern/action pairs.
Whenever a pattern matches, the corresponding action is performed.
Each item looks like (PATTERN ACTION).

The PATTERN should be a symbol, a variable.  The value of this
variable gives the regular expression to search for.  Note that the
regexp must match at the end of the buffer, \"\\'\" is implicitly
appended to it.

The ACTION should also be a symbol, but a function.  When the
corresponding PATTERN matches, the ACTION function is called.")