Procházet zdrojové kódy

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.

Christopher Schmidt před 12 roky
rodič
revize
741bc5c645
1 změnil soubory, kde provedl 4 přidání a 1 odebrání
  1. 4 1
      lisp/org.el

+ 4 - 1
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