diff --git a/ChangeLog b/ChangeLog index 8bef50b50..bec34b841 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,6 +1,8 @@ 2008-02-08 Carsten Dominik * org.el (org-clock-report): Show the clocktable when found. + (org-refile): Fix positioning bug when `org-reverse-note-order' is + nil. 2008-02-07 Carsten Dominik diff --git a/org.el b/org.el index 9a4d4741a..6482354ab 100644 --- a/org.el +++ b/org.el @@ -14065,11 +14065,12 @@ heading in the current buffer." (goto-char pos) (looking-at outline-regexp) (setq level (org-get-legal-level (funcall outline-level) 1)) - (goto-char (or (save-excursion - (if reversed - (outline-next-heading) - (outline-get-next-sibling))) - (point-max))) + (goto-char + (if reversed + (outline-next-heading) + (or (save-excursion (outline-get-next-sibling)) + (org-end-of-subtree t t) + (point-max)))) (bookmark-set "org-refile-last-stored") (org-paste-subtree level)))) (org-cut-special)