From: Matt Lundin <mdl@imapmail.org>
To: Org Mode <emacs-orgmode@gnu.org>
Subject: [PATCH] Don't build org-refile-cache if org-refile-use-cache is nil
Date: Fri, 21 May 2010 18:14:53 -0400 [thread overview]
Message-ID: <874oi0rj9t.fsf@fastmail.fm> (raw)
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 \"/user@host:\"."
(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
reply other threads:[~2010-05-21 22:18 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=874oi0rj9t.fsf@fastmail.fm \
--to=mdl@imapmail.org \
--cc=emacs-orgmode@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.