Browse Source

org-insert-heading-respect-content: Fix the argument order

* lisp/org.el (org-insert-todo-heading-respect-content): Fix the order
of arguments inside the `org-insert-todo-heading' call.

Fixes https://orgmode.org/list/m1a683p42k.fsf@rrudakov-mbp.lan
Ihor Radchenko 2 years ago
parent
commit
a1af06d643
1 changed files with 1 additions and 1 deletions
  1. 1 1
      lisp/org.el

+ 1 - 1
lisp/org.el

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