fixup! fixup! org-insert-heading: Fix when folded text is kept right at the new heading
This commit is contained in:
parent
7a4784b122
commit
dd2f05f592
|
@ -1938,14 +1938,12 @@ CLOCK: [2022-09-17 sam. 11:00]--[2022-09-17 sam. 11:46] => 0:46"
|
|||
(buffer-string))))
|
||||
(should
|
||||
(equal
|
||||
"
|
||||
* 1
|
||||
"* 1
|
||||
** 1.1
|
||||
** 1.2
|
||||
*
|
||||
* 2"
|
||||
(org-test-with-temp-text "
|
||||
<point>* 1
|
||||
(org-test-with-temp-text "<point>* 1
|
||||
** 1.1
|
||||
** 1.2
|
||||
* 2"
|
||||
|
@ -2098,7 +2096,7 @@ text
|
|||
(buffer-substring-no-properties (line-beginning-position) (point-max)))))
|
||||
(should
|
||||
(equal
|
||||
"* TODO "
|
||||
"* TODO \n"
|
||||
(let ((org-todo-keywords '((sequence "FIRST" "TODO" "|" "DONE"))))
|
||||
(org-test-with-temp-text "* TODO\n** WAITING\n"
|
||||
(org-insert-todo-heading-respect-content)
|
||||
|
@ -2106,7 +2104,7 @@ text
|
|||
;; Pass prefix argument.
|
||||
(should
|
||||
(equal
|
||||
"* FIRST "
|
||||
"* FIRST \n"
|
||||
(let ((org-todo-keywords '((sequence "FIRST" "TODO" "|" "DONE"))))
|
||||
(org-test-with-temp-text "* TODO\n** WAITING\n"
|
||||
(org-insert-todo-heading-respect-content '(4))
|
||||
|
|
Loading…
Reference in New Issue