summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Schmidt <christopher@ch.ristopher.com>2013-05-06 16:21:56 (GMT)
committer Christopher Schmidt <christopher@ch.ristopher.com>2013-05-06 16:25:00 (GMT)
commit741bc5c6455d47249affc8ba29e47c00a6150145 (patch)
tree7092ac280e2f4ce8f678a0f55a758aa18bae7981
parent9bc55c7d0090e0a7667ed47cfa6d4ac2b1fa00e4 (diff)
downloadorg-mode-741bc5c6455d47249affc8ba29e47c00a6150145.zip
org-mode-741bc5c6455d47249affc8ba29e47c00a6150145.tar.gz
org.el: Execute org-insert-heading and org-insert-heading-respect-content in
orgstruct++-mode when the context around point is an item-body. * org.el (orgstruct-make-binding): Execute org-insert-heading and org-insert-heading-respect-content when the context around point is an item-body.
-rw-r--r--lisp/org.el5
1 files changed, 4 insertions, 1 deletions
diff --git a/lisp/org.el b/lisp/org.el
index b839a8f..8ec6781 100644
--- a/lisp/org.el
+++ b/lisp/org.el
@@ -9008,7 +9008,10 @@ if `orgstruct-heading-prefix-regexp' is non-nil."
(not
(let* ,bindings
(org-context-p 'headline 'item
- ,(when (memq fun '(org-insert-heading))
+ ,(when (memq fun
+ '(org-insert-heading
+ org-insert-heading-respect-content
+ org-meta-return))
'(when orgstruct-is-++
'item-body))))))))
(if fallback