Function: majutsu-section-cycle-global
majutsu-section-cycle-global is an interactive and natively compiled
function defined in majutsu-section.el.
Signature
(majutsu-section-cycle-global)
Documentation
Cycle visibility of all sections in the current buffer.
Key Bindings
majutsu-mode-map <backtab>
Source Code
;; Defined in /nix/store/jagqw3nms546pad0gxi5f3wsckk6pji7-emacs-packages-deps/share/emacs/site-lisp/majutsu-section.el
(defun majutsu-section-cycle-global ()
"Cycle visibility of all sections in the current buffer."
(interactive)
(let ((children (oref magit-root-section children)))
(cond
((and (seq-some (lambda (child) (oref child hidden)) children)
(seq-some (lambda (child) (oref child children)) children))
(majutsu-section-show-headings magit-root-section))
((seq-some #'magit-section-hidden-body children)
(majutsu-section-show-children magit-root-section))
(t
(mapc #'majutsu-section-hide children)))))