Function: markdown-table-move-row
markdown-table-move-row is an interactive and byte-compiled function
defined in markdown-mode.el.
Signature
(markdown-table-move-row &optional UP)
Documentation
Move table line at point down.
With optional argument UP, move it up.
Key Bindings
Source Code
;; Defined in ~/.emacs.d/elpa/markdown-mode-20260321.143/markdown-mode.el
(defun markdown-table-move-row (&optional up)
"Move table line at point down.
With optional argument UP, move it up."
(interactive "P")
(unless (markdown-table-at-point-p)
(user-error "Not at a table"))
(let* ((col (current-column)) (pos (point))
(tonew (if up 0 2)) txt)
(beginning-of-line tonew)
(unless (markdown-table-at-point-p)
(goto-char pos) (user-error "Cannot move row further"))
(goto-char pos) (beginning-of-line 1) (setq pos (point))
(setq txt (buffer-substring (point) (1+ (line-end-position))))
(delete-region (point) (1+ (line-end-position)))
(beginning-of-line tonew)
(insert txt) (beginning-of-line 0)
(move-to-column col)))