Function: markdown-extend-changed-region

markdown-extend-changed-region is a byte-compiled function defined in markdown-mode.el.

This function is obsolete since 2.8.

Signature

(markdown-extend-changed-region FROM TO)

Documentation

Extend region given by FROM and TO so that we can fontify all links.

The region is extended to the first newline before and the first newline after.

Source Code

;; Defined in ~/.emacs.d/elpa/markdown-mode-20260321.143/markdown-mode.el
(defun markdown-extend-changed-region (from to)
  "Extend region given by FROM and TO so that we can fontify all links.
The region is extended to the first newline before and the first
newline after."
  ;; start looking for the first new line before 'from
  (goto-char from)
  (re-search-backward "\n" nil t)
  (let ((new-from (point-min))
        (new-to (point-max)))
    (if (not (= (point) from))
        (setq new-from (point)))
    ;; do the same thing for the first new line after 'to
    (goto-char to)
    (re-search-forward "\n" nil t)
    (if (not (= (point) to))
        (setq new-to (point)))
    (cl-values new-from new-to)))