branch: externals/org
commit a1af06d643d662f8c04e7c59d10efc45108a9528
Author: Ihor Radchenko <yanta...@gmail.com>
Commit: Ihor Radchenko <yanta...@gmail.com>

    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....@rrudakov-mbp.lan
---
 lisp/org.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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

Reply via email to