Function: majutsu-section-show

majutsu-section-show is an interactive and natively compiled function defined in majutsu-section.el.

Signature

(majutsu-section-show SECTION)

Documentation

Show the body of SECTION.

Key Bindings

This command is not in any keymaps.

Source Code

;; Defined in /nix/store/jagqw3nms546pad0gxi5f3wsckk6pji7-emacs-packages-deps/share/emacs/site-lisp/majutsu-section.el
(defun majutsu-section-show (section)
  "Show the body of SECTION."
  (interactive (list (magit-current-section)))
  (oset section hidden nil)
  (magit-section--opportunistic-wash section)
  (magit-section--opportunistic-paint section)
  (when-let* ((bounds (majutsu-section--hidden-bounds section)))
    ;; Clear up to the unshifted end as well: Magit's own show/hide
    ;; commands use [content, end) bounds and remove-overlays merely
    ;; truncates partially overlapping overlays, so clearing only the
    ;; shifted range would leave a one-character invisible remnant
    ;; behind whenever both implementations touch the same section.
    (remove-overlays (car bounds) (oref section end) 'invisible t))
  (magit-section-maybe-update-visibility-indicator section)
  (magit-section-maybe-cache-visibility section)
  (dolist (child (oref section children))
    (if (oref child hidden)
        (majutsu-section-hide child)
      (majutsu-section-show child))))