From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id MNafCe3zDl9XOAAA0tVLHw (envelope-from ) for ; Wed, 15 Jul 2020 12:17:49 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id qD5QBe3zDl+YNQAAbx9fmQ (envelope-from ) for ; Wed, 15 Jul 2020 12:17:49 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 88E2E9403A2 for ; Wed, 15 Jul 2020 12:17:47 +0000 (UTC) Received: from localhost ([::1]:46194 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jvgM6-0006AY-CE for larch@yhetil.org; Wed, 15 Jul 2020 08:17:46 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:60542) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jvgLl-0006AF-49 for emacs-orgmode@gnu.org; Wed, 15 Jul 2020 08:17:25 -0400 Received: from coral.adamspiers.org ([2001:ba8:1f1:f27f::2]:47652) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jvgLj-0000xq-8q for emacs-orgmode@gnu.org; Wed, 15 Jul 2020 08:17:24 -0400 Received: from localhost (243.103.2.81.in-addr.arpa [81.2.103.243]) by coral.adamspiers.org (Postfix) with ESMTPSA id 85E2E2E6BC for ; Wed, 15 Jul 2020 13:17:21 +0100 (BST) Date: Wed, 15 Jul 2020 13:17:21 +0100 From: Adam Spiers To: org-mode mailing list Subject: make org-refile auto-recache when needed? Message-ID: <20200715121721.v7f7shcjibfz53bm@gmail.com> X-OS: GNU/Linux MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline Received-SPF: pass client-ip=2001:ba8:1f1:f27f::2; envelope-from=orgmode@adamspiers.org; helo=coral.adamspiers.org X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=fail reason="SPF not aligned (relaxed), No valid DKIM" header.from=adamspiers.org (policy=none); spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Spam-Score: 0.09 X-TUID: LbZEmrf9a/59 Hi all, I note that when org-refile-use-cache is enabled and the cache becomes stale, attempting to refile results in this error message (originating from `org-refile-check-position'): Invalid refile position, please clear the cache with `C-0 C-c C-w' before refiling Is there any reason why it couldn't just automatically rebuild the cache when needed? If it did that then I struggle to imagine why anyone would ever *not* want the cache enabled, because in the worst case org-refile would just behave the same as when the cache is disabled, and in the best case it would perform a lot faster. Cheers, Adam