0
0
Fork 1
mirror of https://git.savannah.gnu.org/git/emacs/org-mode.git synced 2024-07-15 23:16:27 +00:00

No need to call org-back-to-heading with goto argument.

* lisp/org.el: (org-refile) Don't call org-back-to-heading with goto
  argument.

This fixes an error that results when calling org-refile with the
GOTO argument in a non-org buffer.
This commit is contained in:
Matt Lundin 2011-08-22 09:26:57 -05:00 committed by Bastien Guerry
parent 7475d7da1f
commit 8478a5541c

View file

@ -10487,7 +10487,7 @@ prefix argument (`C-u C-u C-u C-c C-w')."
(setq goto nil)))
(setq it (or rfloc
(save-excursion
(org-back-to-heading t)
(unless goto (org-back-to-heading t))
(org-refile-get-location
(cond (goto "Goto")
(regionp "Refile region to")