summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBernt Hansen <bernt@norang.ca>2010-02-20 12:44:32 -0500
committerCarsten Dominik <carsten.dominik@gmail.com>2010-02-20 20:36:38 +0100
commitc4a459aa7a2fbdc5dc20d2da7925b1b749baa4ac (patch)
tree248f1de4df3c8ecfe27d17e3c0df8c4d17661f7c
parent6a5f6deaac1bcf4244625e5843bbaf511b8e4b57 (diff)
downloadorg-mode-c4a459aa7a2fbdc5dc20d2da7925b1b749baa4ac.tar.gz
Fix goto last refile location
Move the marker for the last refile location to the heading instead of at the end of the entry. This was causing C-u C-u C-c C-w to end up on the heading following the newly refiled entry.
-rw-r--r--lisp/org.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/lisp/org.el b/lisp/org.el
index e5b2f56..8ba782a 100644
--- a/lisp/org.el
+++ b/lisp/org.el
@@ -9399,8 +9399,9 @@ See also `org-refile-use-outline-path' and `org-completion-use-ido'"
(goto-char (point-min))
(or (outline-next-heading) (goto-char (point-max)))))
(if (not (bolp)) (newline))
- (bookmark-set "org-refile-last-stored")
(org-paste-subtree level)
+ (and org-auto-align-tags (org-set-tags nil t))
+ (bookmark-set "org-refile-last-stored")
(if (fboundp 'deactivate-mark) (deactivate-mark))
(run-hooks 'org-after-refile-insert-hook))))
(if regionp