From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jonathon Anderson Subject: org-refile returns 'invalid target location' when refiling to file root Date: Sun, 27 Nov 2011 22:50:01 +0300 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Return-path: Received: from eggs.gnu.org ([140.186.70.92]:38764) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RUkk4-0008NG-6i for emacs-orgmode@gnu.org; Sun, 27 Nov 2011 14:50:25 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RUkk3-0001Mr-3a for emacs-orgmode@gnu.org; Sun, 27 Nov 2011 14:50:24 -0500 Received: from mail-iy0-f169.google.com ([209.85.210.169]:64125) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RUkk3-0001Mn-0a for emacs-orgmode@gnu.org; Sun, 27 Nov 2011 14:50:23 -0500 Received: by iaek3 with SMTP id k3so9841769iae.0 for ; Sun, 27 Nov 2011 11:50:22 -0800 (PST) List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org org-version 7.7 If I `C-c w` and attempt to refile a tree to the root of a file, the minibuffer displays "invalid target location" and org-mode fails to refile the tree. This works as expected when refiling to a heading within the same file, or if I have org-refile-use-outline-path set to `file` rather than `full-file-path`. (I have idential filenames in different paths, so I need to use full-file-path.) I expect this to work because of the documentation for org-refile-use-outline-path. Admittedly, this is under the heading of the `file` value, but I see no reason why it shouldn't be consistent across the two settings. > In this case, you can also stop the completion after > the file name, to get entries inserted as top level in the file. Do let me know if there's more useful information I can provide. ~jonathon Applicable `.emacs`: (setq org-refile-targets '( (nil :todo . "PROJECT") (nil :maxlevel . 1) (org-files :maxlevel . 1) )) (setq org-refile-allow-creating-parent-nodes t) (setq org-refile-use-outline-path 'full-file-path)