Ihor Radchenko writes: Hello, Ihor! >> I noticed that org-refile-get-targets seems to recalculate the first >> part of the outline path for each heading, which makes it slow on large >> It feels like a pretty small change (just adding a let), but I >> have copyright assignment papers on file at the FSF just in case. > Agree. Yet, the tests are failing :) > 1 unexpected results: > FAILED test-org/refile-get-targets ((should (equal '("H1\\/foo") (org-test-with-temp-text "* H1/foo" (let (... ...) (mapcar ... ...))))) :form (equal ("H1\\/foo") ("H1")) :value nil :explanation (list-elt 0 (arrays-of-different-length 7 2 "H1\\/foo" "H1" first-mismatch-at 2))) Whoops, sorry, I forgot to run the tests. =) Now that I have done so, I realized that I accidentally deleted the (goto-char (point-min)) (setq org-outline-path-cache nil) before the loop. This patch should make that test run again. Once more with feeling! Sacha