Function: markdown-table-goto-column

markdown-table-goto-column is a byte-compiled function defined in markdown-mode.el.

Signature

(markdown-table-goto-column N &optional ON-DELIM)

Documentation

Go to the Nth column in the table line at point.

With optional argument ON-DELIM, stop with point before the left delimiter of the cell. If there are less than N cells, just go beyond the last delimiter. This function assumes point is on a table.

Source Code

;; Defined in ~/.emacs.d/elpa/markdown-mode-20260321.143/markdown-mode.el
(defun markdown-table-goto-column (n &optional on-delim)
  "Go to the Nth column in the table line at point.
With optional argument ON-DELIM, stop with point before the left
delimiter of the cell. If there are less than N cells, just go
beyond the last delimiter. This function assumes point is on a
table."
  (beginning-of-line 1)
  (when (> n 0)
    (while (and (> n 0) (search-forward "|" (line-end-position) t))
      (when (and (not (looking-back "\\\\|" (line-beginning-position)))
                 (not (markdown--thing-at-wiki-link (match-beginning 0))))
        (cl-decf n)))
    (if on-delim
        (backward-char 1)
      (when (looking-at " ") (forward-char 1)))))