Function: hs-toggle-all

hs-toggle-all is an interactive and byte-compiled function defined in hideshow.el.gz.

Signature

(hs-toggle-all)

Documentation

Hide or show all the blocks in the current buffer.

Probably introduced at or before Emacs version 31.1.

Key Bindings

Source Code

;; Defined in /usr/src/emacs/lisp/progmodes/hideshow.el.gz
(defun hs-toggle-all ()
  "Hide or show all the blocks in the current buffer."
  (interactive)
  (if hs--toggle-all-state
      (let (hs-allow-nesting)
        (hs-discard-overlays (point-min) (point-max)))
    (hs-hide-all))
  (setq-local hs--toggle-all-state (not hs--toggle-all-state)))