[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[O] [PATCH] fix org-insert-todo-heading-respect-content in plain list it
From: |
Ingo Lohmar |
Subject: |
[O] [PATCH] fix org-insert-todo-heading-respect-content in plain list item |
Date: |
Sun, 27 Oct 2013 17:48:34 +0100 |
User-agent: |
Notmuch/0.14+519~gb349ce6 (http://notmuchmail.org) Emacs/24.3.50.1 (x86_64-pc-linux-gnu) |
Hi guys,
please find attached a 1-4-char patch fixing the behavior of the above
function when inside a plain list.
Best,
Ingo
>From e22f9ffe3f6af69cde2397f56a7efebaaa7710e0 Mon Sep 17 00:00:00 2001
From: Ingo Lohmar <address@hidden>
Date: Sun, 27 Oct 2013 17:34:22 +0100
Subject: [PATCH] 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.
---
lisp/org.el | 4 ++-- 1 file changed, 2
insertions(+), 2 deletions(-)
diff --git a/lisp/org.el b/lisp/org.el
index 0fd531d..275f480 100644
--- a/lisp/org.el
+++ b/lisp/org.el
@@ -7770,7 +7770,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.
--
1.7.10.4
- [O] [PATCH] fix org-insert-todo-heading-respect-content in plain list item,
Ingo Lohmar <=