Function: hs-hide-all

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

Signature

(hs-hide-all)

Documentation

Hide all top level blocks.

This command runs hs-hide-hook. If hs-hide-comments-when-hiding-all is non-nil, also hide the comments.

View in manual

Probably introduced at or before Emacs version 20.1.

Key Bindings

Source Code

;; Defined in /usr/src/emacs/lisp/progmodes/hideshow.el.gz
;;;; Commands

(defun hs-hide-all ()
  "Hide all top level blocks.
This command runs `hs-hide-hook'.
If `hs-hide-comments-when-hiding-all' is non-nil, also hide the
comments."
  (interactive)
  (hs-life-goes-on
   (let ((spew (make-progress-reporter
                "Hiding all blocks..." (point-min) (point-max))))
     (hs-hide-level-recursive
      1 (point-min) (point-max)
      hs-hide-comments-when-hiding-all
      hs-hide-all-non-comment-function
      spew)
     (progress-reporter-done spew))
   (run-hooks 'hs-hide-hook)))