|
@@ -1415,6 +1415,13 @@
|
|
"* TODO \n"
|
|
"* TODO \n"
|
|
(org-test-with-temp-text "* H\n- an item\n- another one"
|
|
(org-test-with-temp-text "* H\n- an item\n- another one"
|
|
(search-forward "an ")
|
|
(search-forward "an ")
|
|
|
|
+ (org-insert-todo-heading-respect-content)
|
|
|
|
+ (buffer-substring-no-properties (line-beginning-position) (point-max)))))
|
|
|
|
+ ;; Use the same TODO keyword as current heading.
|
|
|
|
+ (should
|
|
|
|
+ (equal
|
|
|
|
+ "* TODO \n"
|
|
|
|
+ (org-test-with-temp-text "* TODO\n** WAITING\n"
|
|
(org-insert-todo-heading-respect-content)
|
|
(org-insert-todo-heading-respect-content)
|
|
(buffer-substring-no-properties (line-beginning-position) (point-max))))))
|
|
(buffer-substring-no-properties (line-beginning-position) (point-max))))))
|
|
|
|
|