Function: markdown-table-delete-column
markdown-table-delete-column is an interactive and byte-compiled
function defined in markdown-mode.el.
Signature
(markdown-table-delete-column)
Documentation
Delete column at point from table.
Key Bindings
Source Code
;; Defined in ~/.emacs.d/elpa/markdown-mode-20260321.143/markdown-mode.el
(defun markdown-table-delete-column ()
"Delete column at point from table."
(interactive)
(unless (markdown-table-at-point-p)
(user-error "Not at a table"))
(let ((col (markdown-table-get-column))
(begin (markdown-table-begin))
(end (copy-marker (markdown-table-end))))
(markdown-table-save-cell
(goto-char begin)
(while (< (point) end)
(markdown-table-goto-column col t)
(and (looking-at "|\\(?:\\\\|\\|[^|\n]\\)+|")
(replace-match "|"))
(forward-line)))
(set-marker end nil)
(markdown-table-goto-column (max 1 (1- col)))
(when markdown-table-align-p
(markdown-table-align))))