Re: [O] [PATCH 2/2] Allow inserting diary entries last in date tree

2015-08-23 Thread Nicolas Goaziou
Nikolai Weibull writes: > That’s what I used first, but that doesn’t work if the subtree has > children that has children. Indeed. I realized it was wrong a short time after sending it. What about: (end-of-line) (org-insert-heading '(4) t) (org-do-demote) ? Regards,

Re: [O] [PATCH 2/2] Allow inserting diary entries last in date tree

2015-08-23 Thread Nikolai Weibull
On Sun, Aug 23, 2015 at 9:40 AM, Nicolas Goaziou wrote: >> + (let ((last (eq org-agenda-insert-diary-strategy 'date-tree-last)) >> + (has-children (save-excursion (org-goto-first-child >> +(if (not (and last has-children)) >> + (outline-next-heading) >> + (org-goto-first-chi

Re: [O] [PATCH 2/2] Allow inserting diary entries last in date tree

2015-08-23 Thread Nicolas Goaziou
Hello, Nikolai Weibull writes: > * org-agenda.el (org-agenda-insert-diary-strategy): Add new value > 'date-tree-last. > (org-agenda-insert-diary-make-new-entry): Handle > `org-agenda-insert-diary-strategy' set to 'date-tree-last. > > To allow for diary entries to be entered in time order i

[O] [PATCH 2/2] Allow inserting diary entries last in date tree

2015-08-20 Thread Nikolai Weibull
* org-agenda.el (org-agenda-insert-diary-strategy): Add new value 'date-tree-last. (org-agenda-insert-diary-make-new-entry): Handle `org-agenda-insert-diary-strategy' set to 'date-tree-last. To allow for diary entries to be entered in time order in the date tree, add a new value to `org-agen