Consolidate capture targets and allow outline path in datetree targets
commit0f1b5ec496106c831a354d37895395784fbafa1e
authorCarsten Dominik <carsten.dominik@gmail.com>
Wed, 1 Feb 2017 05:44:00 +0000 (1 06:44 +0100)
committerCarsten Dominik <carsten.dominik@gmail.com>
Thu, 16 Mar 2017 07:18:55 +0000 (16 08:18 +0100)
tree302f704e45349c95b3924f7434a2c9def2c35ab3
parent9f3a026e5773592d260a14910e09215eb1a3a83f
Consolidate capture targets and allow outline path in datetree targets

* doc/org.texi: Document the new capture templates target.
* lisp/org-capture.el (org-capture-upgrade-templates): New function.
(org-capture-templates): Implement the new file+olp+datetree target.
(org-capture): Document the C-1 prefix.
(org-capture-sanitize-olp): New function.
(org-capture-select-template): Make sure upgraded version of templates
variable is used.
* lisp/org-datetree.el (org-datetree-find-date-create): Accept
`subtree-at-point' as a value for the KEEP-RESTRICTION argument.
(org-datetree-find-iso-week-create): Accept `subtree-at-point'
as a value for the KEEP-RESTRICTION argument.
* lisp/org.el (org-find-olp): Throw an error when called in a
buffer that is not in Org mode.
* lisp/org-capture.el (org-capture-fill-template): Use overriding time
also in `?<>' escapes.
doc/org.texi
lisp/org-capture.el
lisp/org-datetree.el
lisp/org.el