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:
parent
2cc2d8f1f6
commit
b4e41b9879
|
@ -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.
|
||||
|
|
Loading…
Reference in a new issue