Browse Source

Call org-reveal after refiling

Sometimes refiling a task displays the next task heading after ... at the
end of a folded task.  This keeps the next task the cursor is on starting
in column 1 which feels more natural.
Bernt Hansen 11 years ago
parent
commit
a30955b050
1 changed files with 2 additions and 1 deletions
  1. 2 1
      lisp/org.el

+ 2 - 1
lisp/org.el

@@ -8336,7 +8336,8 @@ See also `org-refile-use-outline-path' and `org-completion-use-ido'"
 	      (delete-region (point) (+ (point) region-length))
 	    (org-cut-subtree))
 	  (setq org-markers-to-move nil)
-	  (message "Refiled to \"%s\"" (car it)))))))
+	  (message "Refiled to \"%s\"" (car it))))))
+  (org-reveal))
 
 (defun org-refile-goto-last-stored ()
   "Go to the location where the last refile was stored."