Fix refiling to the last entry in the buffer.

This commit is contained in:
Carsten Dominik 2008-09-20 06:55:40 +02:00
parent 57d80846b3
commit 6697584704
2 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2008-09-20 Carsten Dominik <dominik@science.uva.nl>
* org.el (org-refile): Allow refiling to the last entry in the
buffer.
2008-09-19 Carsten Dominik <dominik@science.uva.nl>
* org.el (org-indent-line-function): No longer check for src

View File

@ -7951,10 +7951,11 @@ operation has put the subtree."
(setq level (org-get-valid-level (funcall outline-level) 1))
(goto-char
(if reversed
(outline-next-heading)
(or (outline-next-heading) (point-max))
(or (save-excursion (outline-get-next-sibling))
(org-end-of-subtree t t)
(point-max))))
(if (not (bolp)) (newline))
(bookmark-set "org-refile-last-stored")
(org-paste-subtree level))))
(org-cut-subtree)