Function: markdown-mark-subtree

markdown-mark-subtree is an interactive and byte-compiled function defined in markdown-mode.el.

Signature

(markdown-mark-subtree)

Documentation

Mark the current subtree.

This puts point at the start of the current subtree, and mark at the end.

Key Bindings

Source Code

;; Defined in ~/.emacs.d/elpa/markdown-mode-20260321.143/markdown-mode.el
(defun markdown-mark-subtree ()
  "Mark the current subtree.
This puts point at the start of the current subtree, and mark at the end."
  (interactive)
  (let ((beg))
    (if (markdown-heading-at-point)
        (beginning-of-line)
      (markdown-previous-visible-heading 1))
    (setq beg (point))
    (markdown-end-of-subtree)
    (push-mark (point) nil t)
    (goto-char beg)))