From mboxrd@z Thu Jan 1 00:00:00 1970 From: Viktor Rosenfeld Subject: Re: org-refile returns 'invalid target location' when refiling to file root Date: Mon, 28 Nov 2011 18:44:04 +0100 Message-ID: <20111128174404.GA59934@client195-234.wlan.hu-berlin.de> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from eggs.gnu.org ([140.186.70.92]:47567) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RV5FS-0003q6-Uh for emacs-orgmode@gnu.org; Mon, 28 Nov 2011 12:44:11 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RV5FR-00030X-KH for emacs-orgmode@gnu.org; Mon, 28 Nov 2011 12:44:10 -0500 Received: from mail-bw0-f41.google.com ([209.85.214.41]:63791) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RV5FR-00030O-Dy for emacs-orgmode@gnu.org; Mon, 28 Nov 2011 12:44:09 -0500 Received: by bke17 with SMTP id 17so9979476bke.0 for ; Mon, 28 Nov 2011 09:44:07 -0800 (PST) Content-Disposition: inline In-Reply-To: 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: Jonathon Anderson Cc: emacs-orgmode@gnu.org Hi Jonathon, I have this in my .emacs file, maybe it helps. (setq org-refile-allow-creating-parent-nodes (quote confirm)) Cheers, Viktor Jonathon Anderson wrote: > 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) >