Function: org-hide-block-toggle-all

org-hide-block-toggle-all is a byte-compiled function defined in org-compat.el.

This function is obsolete since 9.4; please notify Org mailing list if you use this function.

Signature

(org-hide-block-toggle-all)

Documentation

Toggle the visibility of all blocks in the current buffer.

Source Code

;; Defined in ~/.emacs.d/elpa/org-9.8.2/org-compat.el
(defun org-hide-block-toggle-all ()
  "Toggle the visibility of all blocks in the current buffer."
  (declare (obsolete "please notify Org mailing list if you use this function."
		     "9.4"))
  (let ((start (point-min))
        (end (point-max)))
    (save-excursion
      (goto-char start)
      (while (and (< (point) end)
		  (re-search-forward "^[ \t]*#\\+begin_?\
\\([^ \n]+\\)\\(\\([^\n]+\\)\\)?\n\\(\\(?:.\\|\n\\)+?\\)#\\+end_?\\1[ \t]*$" end t))
	(save-excursion
	  (save-match-data
            (goto-char (match-beginning 0))
            (org-fold-hide-block-toggle)))))))