Function: system-sleep--block-sleep

system-sleep--block-sleep is a byte-compiled function defined in system-sleep.el.gz.

Signature

(system-sleep--block-sleep WHY ALLOW-DISPLAY-SLEEP)

Documentation

Inhibit system idle sleep.

WHY is a string that identifies a sleep block to system utility commands that inspect system-wide blocks. When non-nil, ALLOW-DISPLAY-SLEEP allows the display to sleep or a screen saver to run while the system idle sleep is blocked. The default is to keep the display active. Return a sleep-block token.

Implementations

(system-sleep--block-sleep WHY ALLOW-DISPLAY-SLEEP (NIL ((&context . system-sleep--back-end) eql 'w32))) in `system-sleep.el'.

Undocumented

(system-sleep--block-sleep WHY ALLOW-DISPLAY-SLEEP (NIL ((&context . system-sleep--back-end) eql 'ns))) in `system-sleep.el'.

Undocumented

(system-sleep--block-sleep WHY ALLOW-DISPLAY-SLEEP (NIL ((&context . system-sleep--back-end) eql 'dbus))) in `system-sleep.el'.

Undocumented

Source Code

;; Defined in /usr/src/emacs/lisp/system-sleep.el.gz
(cl-defgeneric system-sleep--block-sleep (why allow-display-sleep)
  "Inhibit system idle sleep.
WHY is a string that identifies a sleep block to system utility commands
that inspect system-wide blocks.
When non-nil, ALLOW-DISPLAY-SLEEP allows the display to sleep or a
screen saver to run while the system idle sleep is blocked.  The default
is to keep the display active.
Return a sleep-block token.")