From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bastien Subject: Re: [PATCH] Return empty list after refile cache was cleared. Date: Wed, 19 May 2010 11:39:16 +0200 Message-ID: <87mxvwut6j.fsf@bzg.ath.cx> References: <1274259004-23895-2-git-send-email-dmaus@ictsoc.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from [140.186.70.92] (port=40630 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OEfkY-0004pS-EF for emacs-orgmode@gnu.org; Wed, 19 May 2010 05:39:40 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OEfkW-0005gf-G5 for emacs-orgmode@gnu.org; Wed, 19 May 2010 05:39:38 -0400 Received: from mail-wy0-f169.google.com ([74.125.82.169]:43302) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OEfkW-0005gU-BT for emacs-orgmode@gnu.org; Wed, 19 May 2010 05:39:36 -0400 Received: by wyb33 with SMTP id 33so1313463wyb.0 for ; Wed, 19 May 2010 02:39:32 -0700 (PDT) In-Reply-To: <1274259004-23895-2-git-send-email-dmaus@ictsoc.de> (David Maus's message of "Wed, 19 May 2010 10:50:04 +0200") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: David Maus Cc: emacs-orgmode@gnu.org Applied, thanks. David Maus writes: > --- > 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 > + > + * org.el (org-refile-cache-get): Return empty list of targets > + when cache was cleared. > + > 2010-05-17 Carsten Dominik > > * 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)))) -- Bastien