Function: markdown-table-move-row
markdown-table-move-row is an interactive and natively 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
This command is not in any keymaps.
Source Code
;; Defined in /nix/store/p33zgg95aglc47pl6zlgs43vki0snxf8-emacs-packages-deps/share/emacs/site-lisp/elpa/markdown-mode-20260827.909/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)))