Function: tramp--with-startup

tramp--with-startup is a macro defined in tramp.el.gz.

Signature

(tramp--with-startup &rest BODY)

Documentation

Schedule BODY 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))))