"Raymond Zeitler" <zei...@yahoo.com> writes:

> C-c C-w cannot seem to recognize any of my agenda files, even though
> org-refile-targets is set to (in custom-set-variables):
>
> (org-refile-targets (quote ((org-agenda-files :regexp . "Tasks"))))
>
> Suppose org-agenda-files contains "~/proj1.org" "~/proj2.org" "~/proj3.org" 
> "~/todo.org".
>
> My expectation is that when I press C-c C-w with point on a subheading
> of Tasks in todo.org, I can specify, say proj1.org and get the
> subheading moved to proj1.org under Tasks. However, org-refile
> responds [No Match], even if I provide the file as ~/proj1.org. And
> Emacs is visiting proj1.org in another buffer.

Hi Raymond,

Going on what you've provided, it sounds like it should work.  A few
suggestions:

1.  In case you haven't yet (but you probably have), check
describe-variable for org-refile-targets.

2.  If you have any doubt about org-refile-targets being set correctly,
experiment with setting it and calling org-refile inside a (let).

3.  I haven't used the default Emacs completion in years; I'm so used to
having Helm that when I have to run "emacs -q" now and then, completing
buffer names and such is painful!  :)  So I'd suggest temporarily, at
least, using Helm as the default completing-read method, which will make
it much easier to debug by showing you the full list of candidates.
That way, if it's empty to begin with, you know something's really
wrong; or if it's full, but it shows [No Match] after you type something
in, that should help you narrow down the cause.

Hope this helps.


Reply via email to