Fix `org-refile-get-targets'
commit66fbceb727aabbbc3d3ddb738fc621ba03c13855
authorNicolas Goaziou <mail@nicolasgoaziou.fr>
Thu, 25 Feb 2016 13:32:57 +0000 (25 14:32 +0100)
committerNicolas Goaziou <mail@nicolasgoaziou.fr>
Thu, 25 Feb 2016 13:32:57 +0000 (25 14:32 +0100)
tree2a31e21ca70fc15a6abfe863481e8362b3884900
parent1045e9e9c0e6438f5ee9dc4f0e5c720a8b670cdd
Fix `org-refile-get-targets'

* lisp/org.el (org-refile-get-targets): Fix bug when using
  `org-refile-target-verify-function'.  Improve speed.

(org-olpa): Remove variable.
(org-outline-path-cache): New variable.

(org--get-outline-path-1): New function.
(org-get-outline-path): Use new function.  This fixes return value when
cache is used and calls are not in the same path.

* testing/lisp/test-org.el (test-org/get-outline-path): New test.

Reported-by: Florian Adamsky <fa-org-mode@haktar.org>
<http://permalink.gmane.org/gmane.emacs.orgmode/104829>
lisp/org.el
testing/lisp/test-org.el