emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* org-refile returns 'invalid target location' when refiling to file root
@ 2011-11-27 19:50 Jonathon Anderson
  2011-11-28 17:44 ` Viktor Rosenfeld
  0 siblings, 1 reply; 4+ messages in thread
From: Jonathon Anderson @ 2011-11-27 19:50 UTC (permalink / raw)
  To: emacs-orgmode

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)

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2011-11-29  7:16 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
2011-11-28 20:31   ` Jonathon Anderson
2011-11-29  7:15     ` Viktor Rosenfeld

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