Function: suspend-frame

suspend-frame is an interactive and byte-compiled function defined in frame.el.gz.

Signature

(suspend-frame)

Documentation

Do whatever is right to suspend the current frame.

Calls suspend-emacs if invoked from the controlling tty device, suspend-tty from a secondary tty device, and iconify-or-deiconify-frame from a graphical frame.

View in manual

Probably introduced at or before Emacs version 23.1.

Key Bindings

Source Code

;; Defined in /usr/src/emacs/lisp/frame.el.gz
(defun suspend-frame ()
  "Do whatever is right to suspend the current frame.
Calls `suspend-emacs' if invoked from the controlling tty device,
`suspend-tty' from a secondary tty device, and
`iconify-or-deiconify-frame' from a graphical frame."
  (interactive)
  (cond
   ((display-multi-frame-p) (iconify-or-deiconify-frame))
   ((eq (framep (selected-frame)) t)
    (if (controlling-tty-p)
        (suspend-emacs)
      (suspend-tty)))
   (t (suspend-emacs))))