소스 검색

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.
Matt Lundin 14 년 전
부모
커밋
8478a5541c
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      lisp/org.el

+ 1 - 1
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")