org-datetree.el: Code cleanup
commit9c382e6cf6987626aaf6aa4d35738bbcb60299f1
authorRĂ¼diger Sonderfeld <ruediger@c-plusplus.net>
Tue, 29 Dec 2015 17:48:55 +0000 (29 17:48 +0000)
committerNicolas Goaziou <mail@nicolasgoaziou.fr>
Tue, 29 Dec 2015 20:57:50 +0000 (29 21:57 +0100)
tree410ec26f54bde294f4dc875d878acbe7986b8ed2
parentaca68e64bc3d4ed65563d7a0a454915d76a7b0f8
org-datetree.el: Code cleanup

* lisp/org-datetree.el (org-datetree--find-create): New function.
(org-datetree-find-year-create, org-datetree-find-month-create,
org-datetree-find-day-create): Removed functions
(org-datetree-find-date-create): Use `org-datetree--find-create' instead
of removed functions.  Use calendar extract functions.
(org-datetree-insert-line): Do more formatting in `format-time-string'
since we call it anyway
* testing/lisp/test-org-datetree.el (test-org-datetree/find-date-create):
  Test if new entries are put at the right place.
lisp/org-datetree.el
testing/lisp/test-org-datetree.el