Function: markdown-outdent-find-next-position

markdown-outdent-find-next-position is a byte-compiled function defined in markdown-mode.el.

Signature

(markdown-outdent-find-next-position CUR-POS POSITIONS)

Documentation

Return the maximal element that precedes CUR-POS from POSITIONS.

Positions are calculated by markdown-calc-indents.

Source Code

;; Defined in ~/.emacs.d/elpa/markdown-mode-20260321.143/markdown-mode.el
(defun markdown-outdent-find-next-position (cur-pos positions)
  "Return the maximal element that precedes CUR-POS from POSITIONS.
Positions are calculated by `markdown-calc-indents'."
  (let ((result 0))
    (dolist (i positions)
      (when (< i cur-pos)
        (setq result (max result i))))
    result))