Function: hydra-pause-resume

hydra-pause-resume is an interactive and byte-compiled function defined in hydra.el.

Signature

(hydra-pause-resume)

Documentation

Quit the current hydra and save it to the stack.

If there's no active hydra, pop one from the stack and call its body. If the stack is empty, call the last hydra's body.

Key Bindings

Source Code

;; Defined in ~/.emacs.d/elpa/hydra-20250316.1254/hydra.el
(defun hydra-pause-resume ()
  "Quit the current hydra and save it to the stack.
If there's no active hydra, pop one from the stack and call its body.
If the stack is empty, call the last hydra's body."
  (interactive)
  (cond (hydra-curr-map
         (ring-insert hydra-pause-ring hydra-curr-body-fn)
         (hydra-keyboard-quit))
        ((zerop (ring-length hydra-pause-ring))
         (funcall hydra-curr-body-fn))
        (t
         (funcall (ring-remove hydra-pause-ring 0)))))