summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIngo Lohmar <i.lohmar@gmail.com>2013-10-27 17:34:22 +0100
committerNicolas Goaziou <n.goaziou@gmail.com>2013-10-29 09:37:53 +0100
commit8eadca98a638c00114898da6306a3d9699121f4e (patch)
treef384f545c5eb5d522490dd043175ec423882c7d8
parentda232c9711f4edfc5425b0fc4bdfe91d9b6ef395 (diff)
downloadorg-mode-8eadca98a638c00114898da6306a3d9699121f4e.tar.gz
Fix org-insert-todo-heading-respect-content in plain list item
* lisp/org.el (org-insert-todo-heading-respect-content): Pass correct prefix arg to always insert heading. TINYCHANGE This function used a second argument t, which is eventually passed to org-insert-heading, adding a list item when inside a plain list. Use the proper argument '(4) now, to always create a heading, just like the function's name and documentation imply.
-rw-r--r--lisp/org.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/org.el b/lisp/org.el
index bb6b543..ddf8354 100644
--- a/lisp/org.el
+++ b/lisp/org.el
@@ -7769,7 +7769,7 @@ This is a list with the following elements:
"Insert TODO heading with `org-insert-heading-respect-content' set to t."
(interactive "P")
(let ((org-insert-heading-respect-content t))
- (org-insert-todo-heading force-state t)))
+ (org-insert-todo-heading force-state '(4))))
(defun org-insert-todo-heading (arg &optional force-heading)
"Insert a new heading with the same level and TODO state as current heading.