mirror of
https://git.savannah.gnu.org/git/emacs/org-mode.git
synced 2024-09-12 15:10:04 +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:
parent
7475d7da1f
commit
8478a5541c
|
@ -10487,7 +10487,7 @@ prefix argument (`C-u C-u C-u C-c C-w')."
|
||||||
(setq goto nil)))
|
(setq goto nil)))
|
||||||
(setq it (or rfloc
|
(setq it (or rfloc
|
||||||
(save-excursion
|
(save-excursion
|
||||||
(org-back-to-heading t)
|
(unless goto (org-back-to-heading t))
|
||||||
(org-refile-get-location
|
(org-refile-get-location
|
||||||
(cond (goto "Goto")
|
(cond (goto "Goto")
|
||||||
(regionp "Refile region to")
|
(regionp "Refile region to")
|
||||||
|
|
Loading…
Reference in a new issue