Function: markdown-table-forward-cell

markdown-table-forward-cell is an interactive and byte-compiled function defined in markdown-mode.el.

Signature

(markdown-table-forward-cell)

Documentation

Go to the next cell in the table.

Create new table lines if required.

Key Bindings

Source Code

;; Defined in ~/.emacs.d/elpa/markdown-mode-20260321.143/markdown-mode.el
(defun markdown-table-forward-cell ()
  "Go to the next cell in the table.
Create new table lines if required."
  (interactive)
  (unless (markdown-table-at-point-p)
    (user-error "Not at a table"))
  (when markdown-table-align-p
    (markdown-table-align))
  (let ((end (markdown-table-end)))
    (when (markdown-table-hline-at-point-p) (end-of-line 1))
    (condition-case nil
        (progn
          (re-search-forward "\\(?:^\\|[^\\]\\)|" end)
          (when (looking-at "[ \t]*$")
            (re-search-forward "\\(?:^\\|[^\\]:\\)|" end))
          (when (and (looking-at "[-:]")
                     (re-search-forward "^\\(?:[ \t]*\\|[^\\]\\)|\\([^-:]\\)" end t))
            (goto-char (match-beginning 1)))
          (if (looking-at "[-:]")
              (progn
                (beginning-of-line 0)
                (markdown-table-insert-row 'below))
            (when (looking-at " ") (forward-char 1))))
      (error (markdown-table-insert-row 'below)))))