From c9ffa063e7ed9bae10f7cd6cc463a7639731923b Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Wed, 4 Jul 2018 14:19:22 +0200 Subject: [PATCH] Fix +org/insert-item in nested plain lists Would prepend new list items in the middle of plain lists, rather than before them. --- modules/lang/org/autoload/org.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/lang/org/autoload/org.el b/modules/lang/org/autoload/org.el index 9021a29f3..9fca302b7 100644 --- a/modules/lang/org/autoload/org.el +++ b/modules/lang/org/autoload/org.el @@ -169,7 +169,7 @@ wrong places)." (org-end-of-line))) (insert "\n" (make-string pad 32) (or marker "")))) (`above - (goto-char (line-beginning-position)) + (org-beginning-of-item) (if (and marker (string-match-p "[0-9]+[).]" marker)) (org-insert-item) (insert (make-string pad 32) (or marker ""))