Function: magit-section-backward-sibling

magit-section-backward-sibling is an interactive and byte-compiled function defined in magit-section.el.

Signature

(magit-section-backward-sibling)

Documentation

Move to the beginning of the previous sibling section.

If there is no previous sibling section, then move to the parent.

Key Bindings

Source Code

;; Defined in ~/.emacs.d/elpa/magit-section-20260330.1102/magit-section.el
(defun magit-section-backward-sibling ()
  "Move to the beginning of the previous sibling section.
If there is no previous sibling section, then move to the parent."
  (interactive)
  (cond-let
    [[current (magit-current-section)]]
    ((not (oref current parent))
     (magit-section-goto -1))
    ([previous (car (magit-section-siblings current 'prev))]
     (magit-section-goto previous))
    ((magit-section-backward))))