Function: markdown-complete-at-point

markdown-complete-at-point is an interactive and byte-compiled function defined in markdown-mode.el.

Signature

(markdown-complete-at-point)

Documentation

Complete markup of object near point.

Handle all elements of markdown-complete-alist in order.

Key Bindings

Source Code

;; Defined in ~/.emacs.d/elpa/markdown-mode-20260321.143/markdown-mode.el
(defun markdown-complete-at-point ()
  "Complete markup of object near point.
Handle all elements of `markdown-complete-alist' in order."
  (interactive "*")
  (let ((list markdown-complete-alist) found changed)
    (while list
      (let ((regexp (eval (caar list) t)) ;FIXME: Why `eval'?
            (function (cdar list)))
        (setq list (cdr list))
        (when (thing-at-point-looking-at regexp)
          (setq found t)
          (setq changed (funcall function))
          (setq list nil))))
    (if found
        (or changed (user-error "Markup at point is complete"))
      (user-error "Nothing to complete at point"))))