Function: with-tramp-suspended-timers

with-tramp-suspended-timers is a macro defined in tramp.el.gz.

Signature

(with-tramp-suspended-timers &rest BODY)

Documentation

Run BODY with suspended timers.

Obey tramp-dont-suspend-timers.

Source Code

;; Defined in /usr/src/emacs/lisp/net/tramp.el.gz
(defmacro with-tramp-suspended-timers (&rest body)
  "Run BODY with suspended timers.
Obey `tramp-dont-suspend-timers'."
  (declare (indent 0) (debug ((form body) body)))
  `(if tramp-dont-suspend-timers
       (progn ,@body)
     (let ((stimers (with-timeout-suspend))
	   timer-list timer-idle-list)
       (unwind-protect
	   (progn ,@body)
	 (with-timeout-unsuspend stimers)))))