summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatt Lundin <mdl@imapmail.org>2011-08-22 09:26:57 -0500
committerBastien Guerry <bzg@altern.org>2011-08-23 17:00:36 +0200
commit8478a5541c28d2d52146829661ba61f2ffce9b04 (patch)
tree65626fe325bcded25898446583e79dab4d8a1f47
parent7475d7da1fcc73e9c619b2d620d370c9f54867c9 (diff)
downloadorg-mode-8478a5541c28d2d52146829661ba61f2ffce9b04.tar.gz
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.
-rw-r--r--lisp/org.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/org.el b/lisp/org.el
index e052ad4..699cc12 100644
--- a/lisp/org.el
+++ b/lisp/org.el
@@ -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")