Re: [Orgmode] Re: Refile target caching

Hi Carsten,
Thank you for thinking of our bugs. This is superb.
I have used it for a while now.

It speeds things up enormously, making the difference between
usability and not.

However, I have definitely had headlines get refiled to the wrong
place.

Ouch, this is bad.
If you do a lot of moving stuff around in the buffer, the markers
pointing to refile locations will become wrong. So you then need
to clear the cache, to make sure you get fresh positions.
A good example where it goes wrong would, of cause, be useful.
- Carsten

I am not able to track it down now, but I do have a
suggestion.
==> Would it be possible to print the actual target that the headline
got refiled to, instead of the name associated with the marker? At
present, org says that it successfully refiled to the target headline
when it did not.
==> Alternatively, org could compare the actual headline it was
refiled to against the headline it was supposed to refile to. Then
you'd get an error if they do not match.
As for the bugs, I cannot investigate further now. Debugging is
difficult for me.
Perhaps more error checking as above will make the bug show up better.
Thanks.
Samuel
On 2010-05-17, Carsten Dominik <address@hidden> wrote:

Hi Sebastian, hi Samuel,
I remember that both of you have in the past reported that refiling
has a long startup time because of target collection.
I have now built a cache for refile targets and would like you to try
it out.
(setq org-refile-use-cache t)

This will speed up refile target collection for the second and
further

instance.
If you are moving or adding entries that are targets themselves, that