Variable: tramp--startup-hook

tramp--startup-hook is a variable defined in tramp.el.gz.

Value

Large value
(#[0 "\300\301\302\"\207"
    [tramp-register-foreign-file-name-handler tramp-sudoedit-file-name-p tramp-sudoedit-file-name-handler]
    3]
 #[0 "\302\303\304B\"\210\302\305\306\"\210\307	\"\207"
    [tramp-sudoedit-method tramp-completion-function-alist-su add-to-list tramp-methods
			   ((tramp-sudo-login
			     (("sudo")
			      ("-u" "%u")
			      ("-S")
			      ("-H")
			      ("-p" "Password:")
			      ("--"))))
			   tramp-default-user-alist
			   ("\\`sudoedit\\'" nil "root")
			   tramp-set-completion-function]
    4]
 #[0 "\300\301\302\"\207"
    [tramp-register-foreign-file-name-handler tramp-sshfs-file-name-p tramp-sshfs-file-name-handler]
    3]
 #[0 "\303\304\305\306\307\310\311	D\312BBBBBB\"\210\303\313\314\315\"\316B\"\210\317\n\"\207"
    [tramp-sshfs-method tramp-default-remote-shell tramp-completion-function-alist-ssh add-to-list tramp-methods
			(tramp-mount-args
			 (("-C")
			  ("-p" "%p")
			  ("-o" "dir_cache=no")
			  ("-o" "transform_symlinks")
			  ("-o" "idmap=user,reconnect")))
			(tramp-login-program "ssh")
			(tramp-login-args
			 (("-q")
			  ("-l" "%u")
			  ("-p" "%p")
			  ("-e" "none")
			  ("-t" "-t")
			  ("%h")
			  ("%l")))
			(tramp-direct-async t)
			tramp-remote-shell
			((tramp-remote-shell-login
			  ("-l"))
			 (tramp-remote-shell-args
			  ("-c")))
			tramp-connection-properties format "/%s:"
			("direct-async-process" t)
			tramp-set-completion-function]
    9]
 #[0 "\300\301\302\"\207"
    [tramp-register-foreign-file-name-handler tramp-smb-file-name-p tramp-smb-file-name-handler]
    3]
 #[0 "\301\302\303\304Q\305B\"\210\306\307\"\207"
    [tramp-smb-method add-to-list tramp-default-user-alist "\\`" "\\'"
		      (nil nil)
		      tramp-set-completion-function
		      ((tramp-parse-netrc "~/.netrc"))]
    5]
 #[0 "\301\302\303B\"\207"
    [tramp-smb-method add-to-list tramp-methods
		      ((tramp-tmpdir "/C$/Temp")
		       (tramp-case-insensitive t))]
    4]
 #[0 "\300\301\302\"\207"
    [tramp-register-foreign-file-name-handler tramp-rclone-file-name-p tramp-rclone-file-name-handler]
    3]
 #[0 "\301\302\303B\"\210\301\304\305B\"\210\306\307\"\207"
    [tramp-rclone-method add-to-list tramp-methods
			 ((tramp-mount-args
			   ("--no-unicode-normalization" "--dir-cache-time" "0s"))
			  (tramp-copyto-args nil)
			  (tramp-moveto-args nil)
			  (tramp-about-args
			   ("--full")))
			 tramp-default-host-alist
			 (nil "")
			 tramp-set-completion-function
			 ((tramp-rclone-parse-device-names ""))]
    4]
 #[0 "\300\301\302\303B\"\207"
    [add-to-list tramp-foreign-file-name-handler-alist tramp-ftp-file-name-p tramp-ftp-file-name-handler]
    4]
 #[0 "\301\302C\"\210\301\303\304\305E\"\210\301\303\305\306E\"\210\307\310\"\207"
    [tramp-ftp-method add-to-list tramp-methods tramp-default-method-alist "\\`ftp\\." nil "\\`\\(anonymous\\|ftp\\)\\'" tramp-set-completion-function
		      ((tramp-parse-netrc "~/.netrc"))]
    5]
 #[0 "\300\301\302\"\207"
    [tramp-register-foreign-file-name-handler tramp-adb-file-name-p tramp-adb-file-name-handler]
    3]
 #[0 "\302\303\304	D\305BB\"\210\302\306\307B\"\210\310\311\"\207"
    [tramp-adb-method tramp-adb-program add-to-list tramp-methods tramp-login-program
		      ((tramp-login-args
			(("shell")))
		       (tramp-direct-async t)
		       (tramp-tmpdir "/data/local/tmp")
		       (tramp-default-port 5555))
		      tramp-default-host-alist
		      (nil "")
		      tramp-set-completion-function
		      ((tramp-adb-parse-device-names ""))]
    5]
 #[0 "\300\301\302\303#\207"
    [tramp-register-foreign-file-name-handler identity tramp-sh-file-name-handler append]
    4]
 #[0 "\306\307\"\210\306\310\"\210\306\311	\"\210\306\312	\"\210\306\313	\"\210\306\314\"\210\306\315\"\210\306\316	\"\210\306\317	\"\210\306\320\n\"\210\306\321\n\"\210\306\322\"\210\306\323\"\210\306\324\"\210\306\325\"\210\306\326\f\"\210\306\327\"\210\306\330	\"\210\306\331
\"\210\306\332	\"\210\306\333	\"\210\306\334	\"\207"
    [tramp-completion-function-alist-rsh tramp-completion-function-alist-ssh tramp-completion-function-alist-telnet tramp-completion-function-alist-su tramp-completion-function-alist-sg tramp-completion-function-alist-putty tramp-set-completion-function "rcp" "remcp" "scp" "scpx" "rsync" "rsh" "remsh" "ssh" "sshx" "telnet" "nc" "su" "sudo" "doas" "ksu" "sg" "krlogin" "plink" "plinkx" "pscp" "psftp" "fcp"]
    3]
 #[0 "\304\305\306\307\310\311D\312BBBB\"\210\304\305\313\314\315\311D\316BBBB\"\210\304\305\317\320\321\322\323\311D\324BBBBBB\"\210\304\305\325\326\327\330\311D\331BBBBB\"\210\304\305\332\333\334\335\336\311D\337BBBBBB\"\210\304\305\340\341\342\311D\343BBBB\"\210\304\305\344\345\346\311D\347BBBB\"\210\304\305\350\351\352\353\354\311D\355BBBBBB\"\210\304\305\356\357\360\361\311D\362BBBBB\"\210\304\305\363\364\365\311D\366BBBB\"\210\304\305\367\370\371\311D\372BBBB\"\210\304\305\373\374\375\311D\376BBBB\"\210\304\305\377\201@�\201A�\311D\201B�BBBB\"\210\304\305\201C�\201D�\201E�\311D\201F�BBBB\"\210\304\305\201G�\201H�\201I�\311D\201J�BBBB\"\210\304\305\201K�\201L�\201M�\311D\201N�BBBB\"\210\304\305\201O�\201P�\201Q�\311D\201R�BBBB\"\210\304\305\201S�\201T�\201U�\201V�\201W�\201X�\201Y�\201Z�\201[�\201\\�\201]�	\n#C\201^�BBBBBBBD\311D\201_�BBBB\"\210\304\305\201`�\201a�\201U�\201b�\201c�\201d�\201e�\201\\�\201]�	\n#C\201f�BBBBBD\311D\201g�BBBB\"\210\304\305\201h�\201i�\201U�\201j�\201k�\201l�\201m�\201n�\201o�\201\\�\201]�	\n#C\201p�BBBBBBBD\311D\201q�BBBB\"\210\304\305\201r�\201s�\201U�\201t�\201u�\201v�\201w�\201x�\201y�\201\\�\201]�	\n#C\201z�BBBBBBBD\311D\201{�BBBB\"\210\304\305\201|�\201}�\201~�\311D\201�BBBB\"\210\304\201\200�\201\201�B\"\210\304\201\202�\201\203�\201\204�B\"\210\304\201\202�\201\205�\201\206�\201\207� E\"\207"
    [tramp-default-remote-shell tramp-terminal-type tramp-initial-end-of-output tramp-local-host-regexp add-to-list tramp-methods "rcp"
				(tramp-login-program "rsh")
				(tramp-login-args
				 (("%h")
				  ("-l" "%u")))
				tramp-remote-shell
				((tramp-remote-shell-login
				  ("-l"))
				 (tramp-remote-shell-args
				  ("-c"))
				 (tramp-copy-program "rcp")
				 (tramp-copy-args
				  (("-p" "%k")
				   ("-r")))
				 (tramp-copy-keep-date t)
				 (tramp-copy-recursive t))
				"remcp"
				(tramp-login-program "remsh")
				(tramp-login-args
				 (("%h")
				  ("-l" "%u")))
				((tramp-remote-shell-login
				  ("-l"))
				 (tramp-remote-shell-args
				  ("-c"))
				 (tramp-copy-program "rcp")
				 (tramp-copy-args
				  (("-p" "%k")))
				 (tramp-copy-keep-date t))
				"scp"
				(tramp-login-program "ssh")
				(tramp-login-args
				 (("-l" "%u")
				  ("-p" "%p")
				  ("%c")
				  ("-e" "none")
				  ("%h")))
				(tramp-async-args
				 (("-q")))
				(tramp-direct-async t)
				((tramp-remote-shell-login
				  ("-l"))
				 (tramp-remote-shell-args
				  ("-c"))
				 (tramp-copy-program "scp")
				 (tramp-copy-args
				  (("-P" "%p")
				   ("-p" "%k")
				   ("%x")
				   ("%y")
				   ("-q")
				   ("-r")
				   ("%c")))
				 (tramp-copy-keep-date t)
				 (tramp-copy-recursive t))
				"scpx"
				(tramp-login-program "ssh")
				(tramp-login-args
				 (("-l" "%u")
				  ("-p" "%p")
				  ("%c")
				  ("-e" "none")
				  ("-t" "-t")
				  ("-o" "RemoteCommand=\"%l\"")
				  ("%h")))
				(tramp-async-args
				 (("-q")))
				((tramp-remote-shell-login
				  ("-l"))
				 (tramp-remote-shell-args
				  ("-c"))
				 (tramp-copy-program "scp")
				 (tramp-copy-args
				  (("-P" "%p")
				   ("-p" "%k")
				   ("%x")
				   ("%y")
				   ("-q")
				   ("-r")
				   ("%c")))
				 (tramp-copy-keep-date t)
				 (tramp-copy-recursive t))
				"rsync"
				(tramp-login-program "ssh")
				(tramp-login-args
				 (("-l" "%u")
				  ("-p" "%p")
				  ("%c")
				  ("-e" "none")
				  ("%h")))
				(tramp-async-args
				 (("-q")))
				(tramp-direct-async t)
				((tramp-remote-shell-login
				  ("-l"))
				 (tramp-remote-shell-args
				  ("-c"))
				 (tramp-copy-program "rsync")
				 (tramp-copy-args
				  (("-t" "%k")
				   ("-p")
				   ("-r")
				   ("-s")
				   ("-c")))
				 (tramp-copy-env
				  (("RSYNC_RSH")
				   ("ssh")
				   ("%c")))
				 (tramp-copy-keep-date t)
				 (tramp-copy-keep-tmpfile t)
				 (tramp-copy-recursive t))
				"rsh"
				(tramp-login-program "rsh")
				(tramp-login-args
				 (("%h")
				  ("-l" "%u")))
				((tramp-remote-shell-login
				  ("-l"))
				 (tramp-remote-shell-args
				  ("-c")))
				"remsh"
				(tramp-login-program "remsh")
				(tramp-login-args
				 (("%h")
				  ("-l" "%u")))
				((tramp-remote-shell-login
				  ("-l"))
				 (tramp-remote-shell-args
				  ("-c")))
				"ssh"
				(tramp-login-program "ssh")
				(tramp-login-args
				 (("-l" "%u")
				  ("-p" "%p")
				  ("%c")
				  ("-e" "none")
				  ("%h")))
				(tramp-async-args
				 (("-q")))
				(tramp-direct-async t)
				((tramp-remote-shell-login
				  ("-l"))
				 (tramp-remote-shell-args
				  ("-c")))
				"sshx"
				(tramp-login-program "ssh")
				(tramp-login-args
				 (("-l" "%u")
				  ("-p" "%p")
				  ("%c")
				  ("-e" "none")
				  ("-t" "-t")
				  ("-o" "RemoteCommand=\"%l\"")
				  ("%h")))
				(tramp-async-args
				 (("-q")))
				((tramp-remote-shell-login
				  ("-l"))
				 (tramp-remote-shell-args
				  ("-c")))
				"telnet"
				(tramp-login-program "telnet")
				(tramp-login-args
				 (("%h")
				  ("%p")
				  ("%n")))
				((tramp-remote-shell-login
				  ("-l"))
				 (tramp-remote-shell-args
				  ("-c")))
				"nc"
				(tramp-login-program "telnet")
				(tramp-login-args
				 (("%h")
				  ("%p")
				  ("%n")))
				((tramp-remote-shell-login
				  ("-l"))
				 (tramp-remote-shell-args
				  ("-c"))
				 (tramp-copy-program "nc")
				 (tramp-copy-args
				  (("-w" "1")
				   ("-v")
				   ("%h")
				   ("%r")))
				 (tramp-remote-copy-program "nc")
				 (tramp-remote-copy-args
				  (("-l")
				   ("-p" "%r")
				   ("%n"))))
				"su"
				(tramp-login-program "su")
				(tramp-login-args
				 (("-")
				  ("%u")))
				((tramp-remote-shell-login
				  ("-l"))
				 (tramp-remote-shell-args
				  ("-c"))
				 (tramp-connection-timeout 10))
				"sg"
				(tramp-login-program "sg")
				(tramp-login-args
				 (("-")
				  ("%u")))
				((tramp-remote-shell-args
				  ("-c"))
				 (tramp-connection-timeout 10))
				"sudo"
				(tramp-login-program "env")
				(tramp-login-args
				 (("SUDO_PROMPT=P\"\"a\"\"s\"\"s\"\"w\"\"o\"\"r\"\"d\"\":")
				  ("sudo")
				  ("-u" "%u")
				  ("-s")
				  ("-H")
				  ("%l")))
				((tramp-remote-shell-login
				  ("-l"))
				 (tramp-remote-shell-args
				  ("-c"))
				 (tramp-connection-timeout 10)
				 (tramp-session-timeout 300))
				"doas"
				(tramp-login-program "doas")
				(tramp-login-args
				 (("-u" "%u")
				  ("-s")))
				((tramp-remote-shell-args
				  ("-c"))
				 (tramp-connection-timeout 10)
				 (tramp-session-timeout 300))
				"ksu"
				(tramp-login-program "ksu")
				(tramp-login-args
				 (("%u")
				  ("-q")))
				((tramp-remote-shell-login
				  ("-l"))
				 (tramp-remote-shell-args
				  ("-c"))
				 (tramp-connection-timeout 10))
				"krlogin"
				(tramp-login-program "krlogin")
				(tramp-login-args
				 (("%h")
				  ("-l" "%u")
				  ("-x")))
				((tramp-remote-shell-login
				  ("-l"))
				 (tramp-remote-shell-args
				  ("-c")))
				"plink"
				(tramp-login-program "plink")
				tramp-login-args
				("-l" "%u")
				("-P" "%p")
				("-ssh")
				("-t")
				("%h")
				("\"")
				format "env 'TERM=%s' 'PROMPT_COMMAND=' 'PS1=%s'"
				(("%l")
				 ("\""))
				((tramp-remote-shell-login
				  ("-l"))
				 (tramp-remote-shell-args
				  ("-c")))
				"plinkx"
				(tramp-login-program "plink")
				("-load")
				("%h")
				("-t")
				("\"")
				(("%l")
				 ("\""))
				((tramp-remote-shell-login
				  ("-l"))
				 (tramp-remote-shell-args
				  ("-c")))
				"pscp"
				(tramp-login-program "plink")
				("-l" "%u")
				("-P" "%p")
				("-ssh")
				("-t")
				("%h")
				("\"")
				(("%l")
				 ("\""))
				((tramp-remote-shell-login
				  ("-l"))
				 (tramp-remote-shell-args
				  ("-c"))
				 (tramp-copy-program "pscp")
				 (tramp-copy-args
				  (("-l" "%u")
				   ("-P" "%p")
				   ("-scp")
				   ("-p" "%k")
				   ("-q")
				   ("-r")))
				 (tramp-copy-keep-date t)
				 (tramp-copy-recursive t))
				"psftp"
				(tramp-login-program "plink")
				("-l" "%u")
				("-P" "%p")
				("-ssh")
				("-t")
				("%h")
				("\"")
				(("%l")
				 ("\""))
				((tramp-remote-shell-login
				  ("-l"))
				 (tramp-remote-shell-args
				  ("-c"))
				 (tramp-copy-program "pscp")
				 (tramp-copy-args
				  (("-l" "%u")
				   ("-P" "%p")
				   ("-sftp")
				   ("-p" "%k")
				   ("-q")))
				 (tramp-copy-keep-date t))
				"fcp"
				(tramp-login-program "fsh")
				(tramp-login-args
				 (("%h")
				  ("-l" "%u")
				  ("sh" "-i")))
				((tramp-remote-shell-login
				  ("-l"))
				 (tramp-remote-shell-args
				  ("-i")
				  ("-c"))
				 (tramp-copy-program "fcp")
				 (tramp-copy-args
				  (("-p" "%k")))
				 (tramp-copy-keep-date t))
				tramp-default-method-alist
				("\\`root\\'" "su")
				tramp-default-user-alist "\\`\\(?:doas\\|ksu\\|su\\(?:do\\)?\\)\\'"
				(nil "root")
				"\\`\\(?:fcp\\|krlogin\\|nc\\|r\\(?:cp\\|emcp\\|sh\\)\\|telnet\\)\\'" nil user-login-name]
    15])

Documentation

Forms to be executed at the end of tramp.el.

Source Code

;; Defined in /usr/src/emacs/lisp/net/tramp.el.gz
(eval-and-compile ;; So it's also available in tramp-loaddefs.el!
  (defvar tramp--startup-hook nil
    "Forms to be executed at the end of tramp.el.")
  (put 'tramp--startup-hook 'tramp-suppress-trace t)

  (defmacro tramp--with-startup (&rest body)
    "Schedule BODY to be executed at the end of tramp.el."
    `(add-hook 'tramp--startup-hook (lambda () ,@body))))