[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Orgmode] [PATCH] Don't build org-refile-cache if org-refile-use-cache i
From: |
Matt Lundin |
Subject: |
[Orgmode] [PATCH] Don't build org-refile-cache if org-refile-use-cache is nil |
Date: |
Fri, 21 May 2010 18:14:53 -0400 |
The function org-get-refile-targets was building org-refile-cache even
if org-refile-use-cache was set to nil. This caused every refile
attempt to call org-refile-cache-clear and to produce the message
"Refile cache has been cleared."
---
lisp/org.el | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/lisp/org.el b/lisp/org.el
index d21aa1f..496eceb 100644
--- a/lisp/org.el
+++ b/lisp/org.el
@@ -9661,7 +9661,8 @@ on the system \"/address@hidden:\"."
(when (= (point) pos0)
;; verification function has not moved point
(goto-char (point-at-eol))))))))
- (org-refile-cache-put tgs (buffer-file-name) descre)
+ (when org-refile-use-cache
+ (org-refile-cache-put tgs (buffer-file-name) descre))
(setq targets (append tgs targets))
))))
(message "Getting targets...done")
--
1.7.1
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Orgmode] [PATCH] Don't build org-refile-cache if org-refile-use-cache is nil,
Matt Lundin <=