Replace easy templates with org-insert-structure-template
commitc04e357f3d5d93484277a7e439847b1233b872bd
authorEric Abrahamsen <eric@ericabrahamsen.net>
Sun, 5 Nov 2017 08:25:15 +0000 (5 09:25 +0100)
committerNicolas Goaziou <mail@nicolasgoaziou.fr>
Sun, 5 Nov 2017 08:56:26 +0000 (5 09:56 +0100)
tree404c98f6d6bba86b6230de8cd6732a6f10a95245
parentfd50740c968f515ae354747a2535a3b6655935cb
Replace easy templates with org-insert-structure-template

* lisp/org.el (org-insert-structure-template): New function for
  wrapping region (or element at point) in a begin/end block.
  (org-structure-predefined-blocks): New option holding predefined
  blocks, for completion.
  (org-try-structure-completion,
  org-complete-expand-structure-template): Remove functions.
* doc/org.texi (Inserting structure templates): Document.
* testing/lisp/test-org.el (test-org/insert-template): New test.
doc/org.texi
etc/ORG-NEWS
lisp/org.el
testing/lisp/test-org.el