Function: org-hide-block-toggle-all
org-hide-block-toggle-all is a byte-compiled function defined in
org-compat.el.gz.
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 /usr/src/emacs/lisp/org/org-compat.el.gz
(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\\([^\000]+?\\)#\\+end_?\\1[ \t]*$" end t))
(save-excursion
(save-match-data
(goto-char (match-beginning 0))
(org-fold-hide-block-toggle)))))))