Function: markdown-move-list-item-down
markdown-move-list-item-down is an interactive and byte-compiled
function defined in markdown-mode.el.
Signature
(markdown-move-list-item-down)
Documentation
Move the current list item down in the list when possible.
In nested lists, move child items with the parent item.
Key Bindings
Source Code
;; Defined in ~/.emacs.d/elpa/markdown-mode-20260321.143/markdown-mode.el
(defun markdown-move-list-item-down ()
"Move the current list item down in the list when possible.
In nested lists, move child items with the parent item."
(interactive)
(let (cur next old)
(when (setq cur (markdown-cur-list-item-bounds))
(setq old (point))
(if (markdown-next-list-item (nth 3 cur))
(progn
(setq next (markdown-cur-list-item-bounds))
(condition-case nil
(progn
(transpose-regions (nth 0 cur) (nth 1 cur)
(nth 0 next) (nth 1 next) nil)
(goto-char (+ old (- (nth 1 next) (nth 1 cur)))))
;; Catch error in case regions overlap.
(error (goto-char old))))
(goto-char old)))))