From: Ingo Lohmar <i.lohmar@gmail.com>
To: emacs-orgmode@gnu.org
Subject: [PATCH] fix org-insert-todo-heading-respect-content in plain list item
Date: Sun, 27 Oct 2013 17:48:34 +0100 [thread overview]
Message-ID: <878uxeu0bh.fsf@acer.localhost.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 131 bytes --]
Hi guys,
please find attached a 1-4-char patch fixing the behavior of the above
function when inside a plain list.
Best,
Ingo
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 0001-really-always-insert-heading.patch --]
[-- Type: text/x-diff, Size: 1246 bytes --]
From e22f9ffe3f6af69cde2397f56a7efebaaa7710e0 Mon Sep 17 00:00:00 2001
From: Ingo Lohmar <i.lohmar@gmail.com>
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
next reply other threads:[~2013-10-27 16:48 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-10-27 16:48 Ingo Lohmar [this message]
2013-10-28 8:43 ` [PATCH] fix org-insert-todo-heading-respect-content in plain list item Nicolas Goaziou
2013-10-28 19:35 ` Ingo Lohmar
2013-10-29 8:58 ` Nicolas Goaziou
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=878uxeu0bh.fsf@acer.localhost.com \
--to=i.lohmar@gmail.com \
--cc=emacs-orgmode@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.