Sfoglia il codice sorgente

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.
Bernt Hansen 16 anni fa
parent
commit
c4a459aa7a
1 ha cambiato i file con 2 aggiunte e 1 eliminazioni
  1. 2 1
      lisp/org.el

+ 2 - 1
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