Function: with-timeout-suspend
with-timeout-suspend is a byte-compiled function defined in
timer.el.gz.
Signature
(with-timeout-suspend)
Documentation
Stop the clock for with-timeout. Used by debuggers.
The idea is that the time you spend in the debugger should not count against these timeouts.
The value is a list that the debugger can pass to with-timeout-unsuspend
when it exits, to make these timers start counting again.
Source Code
;; Defined in /usr/src/emacs/lisp/emacs-lisp/timer.el.gz
(defun with-timeout-suspend ()
"Stop the clock for `with-timeout'. Used by debuggers.
The idea is that the time you spend in the debugger should not
count against these timeouts.
The value is a list that the debugger can pass to `with-timeout-unsuspend'
when it exits, to make these timers start counting again."
(mapcar (lambda (timer)
(cancel-timer timer)
(list timer (time-subtract (timer--time timer) nil)))
with-timeout-timers))