From: David Maus <dmaus@ictsoc.de>
To: emacs-orgmode@gnu.org
Subject: [PATCH] Return empty list after refile cache was cleared.
Date: Wed, 19 May 2010 10:50:04 +0200 [thread overview]
Message-ID: <1274259004-23895-2-git-send-email-dmaus@ictsoc.de> (raw)
In-Reply-To: <yes>
---
lisp/ChangeLog | 5 +++++
lisp/org.el | 2 +-
2 files changed, 6 insertions(+), 1 deletions(-)
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 7cc28e4..01672a0 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,8 @@
+2010-05-19 David Maus <dmaus@ictsoc.de>
+
+ * org.el (org-refile-cache-get): Return empty list of targets
+ when cache was cleared.
+
2010-05-17 Carsten Dominik <carsten.dominik@gmail.com>
* org.el (org-refile-use-cache): New option.
diff --git a/lisp/org.el b/lisp/org.el
index d002dab..4ede91f 100644
--- a/lisp/org.el
+++ b/lisp/org.el
@@ -9526,7 +9526,7 @@ on the system \"/user@host:\"."
"Retrieve the cached value for refile targets given by IDENTIFIERS."
(cond
((not org-refile-cache) nil)
- ((not org-refile-use-cache) (org-refile-cache-clear))
+ ((not org-refile-use-cache) (org-refile-cache-clear) nil)
(t
(let ((set (cdr (assoc (sha1 (prin1-to-string identifiers))
org-refile-cache))))
--
1.7.1
next prev parent reply other threads:[~2010-05-19 8:50 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <yes>
2010-05-19 8:50 ` [PATCH] Fix refile bug David Maus
2010-05-19 8:50 ` David Maus [this message]
2010-05-19 9:39 ` [PATCH] Return empty list after refile cache was cleared Bastien
2010-05-19 18:14 ` [PATCH] org.el: Create new ID property for cloned subtrees David Maus
2010-05-19 18:14 ` [PATCH] Maybe create ID property in " David Maus
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
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1274259004-23895-2-git-send-email-dmaus@ictsoc.de \
--to=dmaus@ictsoc.de \
--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 public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).