diff --git a/lisp/org-agenda.el b/lisp/org-agenda.el index a1ac1bdef..621c2151e 100644 --- a/lisp/org-agenda.el +++ b/lisp/org-agenda.el @@ -8924,7 +8924,7 @@ The prefix arg is passed through to the command if possible." ((member action '(?r ?w)) (setq rfloc (org-refile-get-location "Refile to" - (marker-buffer (car org-agenda-bulk-marked-entries)) + (marker-buffer (car entries)) org-refile-allow-creating-parent-nodes)) (if (nth 3 rfloc) (setcar (nthcdr 3 rfloc)