0
0
Fork 1
mirror of https://git.savannah.gnu.org/git/emacs/org-mode.git synced 2024-09-18 20:10:59 +00:00

org-insert-heading-respect-content: Fix test failures after a1af06d64

* lisp/org.el (org-insert-todo-heading-respect-content): Ignore the
optional argument always inserting a heading.
This commit is contained in:
Ihor Radchenko 2022-08-20 14:22:53 +08:00
parent 2cc2d8f1f6
commit b4e41b9879
No known key found for this signature in database
GPG key ID: 6470762A7DA11D8B

View file

@ -6401,10 +6401,11 @@ Set it to HEADING when provided."
(interactive)
(org-insert-heading '(4) invisible-ok))
(defun org-insert-todo-heading-respect-content (&optional force-state)
(defun org-insert-todo-heading-respect-content (&optional _)
"Insert TODO heading with `org-insert-heading-respect-content' set to t."
(interactive)
(org-insert-todo-heading '(4) force-state))
(let ((org-insert-heading-respect-content t))
(org-insert-todo-heading '(4) t)))
(defun org-insert-todo-heading (arg &optional force-heading)
"Insert a new heading with the same level and TODO state as current heading.