This is a workflow issue that I encounter almost every day:

1. Run org-capture
2. Fill in the capture template
3. Try to refile with C-c C-w
4. Select a refile position from the available choices
5. Receive this error:

org-refile-check-position: Invalid refile position, please clear the cache with 
‘C-0 C-c C-w’ before refiling

This error is fine, but the capture process is completed as though I had
pressed C-c C-c (called org-capture-finalize) and the window disappers.

To fix this now, I have to do the following:
1. Visit the capture location manually or with C-u C-u M-x org-capture
2. Refresh the refile cache with C-0 C-c C-w.
3. Run org-refile again
4. quit-window to return to my original location

This is disruptive, and IMO can be improved.  I think if
org-refile-use-cache is set and the refile cache is invalid,  the
capture process should not default to its default org-capture-finalize
behavior.  Instead, org-capture-refile should fail, and the capture
window should remain open.

As a bonus, it would be nice if org-capture-refile offered to refresh
the refile cache, but it would be enough for it to simply fail and leave
the capture state unchanged.

I'm not sure if the current behavior counts as a bug, so I'm sending a
general email.

Karthik

Reply via email to