Merge branch 'bugfix'

This commit is contained in:
Ihor Radchenko 2023-06-08 16:14:13 +03:00
commit 9082fa8892
No known key found for this signature in database
GPG Key ID: 6470762A7DA11D8B
2 changed files with 26 additions and 2 deletions

View File

@ -7708,7 +7708,8 @@ the cache."
;; it to real beginning then despite
;; START being larger.
(setq start nil)
(move-start-to-next-match nil)
(let ((data nil)) ; data may not be valid. ignore it.
(move-start-to-next-match nil))
;; The new element may now start before
;; or at already processed position.
;; Make sure that we continue from an

View File

@ -2820,7 +2820,30 @@ SCHEDULED: <2014-03-04 tue.>"
(beginning-of-line 2)
(insert "test\n")
(beginning-of-line -1)))
acc))))))
acc)))))
;; Removing heading being processed.
(should
(equal
"Some text
Some text
Some more text
Lets stop here
"
(org-test-with-temp-text
"* Heading 1
Some text
** Heading 1.1
Some text
* Heading 2
Some more text
** Heading 2.1
Lets stop here
"
(org-map-entries
(lambda ()
(delete-region (point) (line-beginning-position 2))
(setq org-map-continue-from (point))))
(buffer-string)))))
(ert-deftest test-org/edit-headline ()
"Test `org-edit-headline' specifications."