emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Viktor Rosenfeld <listuser36@googlemail.com>
To: Jonathon Anderson <anderbubble@gmail.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: org-refile returns 'invalid target location' when refiling to file root
Date: Mon, 28 Nov 2011 18:44:04 +0100	[thread overview]
Message-ID: <20111128174404.GA59934@client195-234.wlan.hu-berlin.de> (raw)
In-Reply-To: <CAGWpjdzifQX5ed_c-_1hs+VfUvi=A+0hfUJ_yQBTwH9VWE8f_Q@mail.gmail.com>

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)
> 

  reply	other threads:[~2011-11-28 17:44 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-11-27 19:50 org-refile returns 'invalid target location' when refiling to file root Jonathon Anderson
2011-11-28 17:44 ` Viktor Rosenfeld [this message]
2011-11-28 20:31   ` Jonathon Anderson
2011-11-29  7:15     ` Viktor Rosenfeld

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20111128174404.GA59934@client195-234.wlan.hu-berlin.de \
    --to=listuser36@googlemail.com \
    --cc=anderbubble@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).