Function: markdown-backward-same-level
markdown-backward-same-level is an interactive and byte-compiled
function defined in markdown-mode.el.
Signature
(markdown-backward-same-level ARG)
Documentation
Move backward to the ARG'th heading at same level as this one.
Stop at the first and last headings of a superior heading.
Key Bindings
Source Code
;; Defined in ~/.emacs.d/elpa/markdown-mode-20260321.143/markdown-mode.el
(defun markdown-backward-same-level (arg)
"Move backward to the ARG'th heading at same level as this one.
Stop at the first and last headings of a superior heading."
(interactive "p")
(markdown-back-to-heading-over-code-block)
(while (> arg 0)
(let ((point-to-move-to
(save-excursion
(markdown-move-heading-common #'outline-get-last-sibling nil 'adjust))))
(if point-to-move-to
(progn
(goto-char point-to-move-to)
(setq arg (1- arg)))
(user-error "No previous same-level heading")))))